summaryrefslogtreecommitdiffstats
path: root/src/privsep.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-08-20 16:28:47 +0100
committerRoy Marples <roy@marples.name>2020-08-20 16:28:47 +0100
commit2d18b2a25e2e95595ff7b643d2a2754540549e3d (patch)
tree736348035fa69ab8f98a919aedd8185728fcd659 /src/privsep.c
parent684895a84c40b4484c7e0d7ce555f7154d8e6d22 (diff)
downloaddhcpcd-2d18b2a25e2e95595ff7b643d2a2754540549e3d.tar.xz
privsep: Only the master process accepts signals
The master process dictates when processes should stop, which allows for a clean shutdown when the admin issues `pkill dhcpcd`.
Diffstat (limited to 'src/privsep.c')
-rw-r--r--src/privsep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/privsep.c b/src/privsep.c
index c5e89baf..aa5cd9ab 100644
--- a/src/privsep.c
+++ b/src/privsep.c
@@ -34,6 +34,7 @@
* Spawn an unpriv process to send/receive common network data.
* Then drop all privs and start running.
* Every process aside from the privileged actioneer is chrooted.
+ * All privsep processes ignore signals - only the master process accepts them.
*
* dhcpcd will maintain the config file in the chroot, no need to handle
* this in a script or something.