diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-12-25 18:56:30 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2025-01-08 22:54:37 +0100 |
commit | 8d649a8d17120b3dbf0ec3e838e5dccb13841ed0 (patch) | |
tree | c57c3ce33fc15d6365f3a9f4ae3487f0f5d59484 /tests | |
parent | 911f205ddadf8255caa123671ccbb4efb9250ead (diff) |
services: static-networking: Run set-up/tear-down as a separate process.
Running that code in PID 1 was fun but it’s not really beneficial and
somewhat risky: risk of blocking, file descriptor leak, inability to
reload Guile-Netlink in shepherd when it’s upgraded, and so on.
This change runs set-up and tear-down as separate processes, which, for
the price of one fork(1), buys us peace of mind.
* gnu/services/base.scm (network-set-up/hurd, network-tear-down/hurd)
(network-tear-down/linux): Use ‘program-file’ instead of ‘scheme-file’.
(network-set-up/linux): Likewise, and remove #:blocking? argument to
‘wait-for-link’.
Change-Id: Ia41479b50eab31ea40c67243fcb1cffe29ac874a
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions