From: Ian Jackson Date: Sat, 27 Sep 2014 10:10:06 +0000 (+0100) Subject: process: Introduce afterfork() X-Git-Tag: base.ipv6-polypath-fixes-2.v1~56 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/5e7a5e2d42c1b06f249debca72c10ad33d157402?hp=5e7a5e2d42c1b06f249debca72c10ad33d157402 process: Introduce afterfork() Rework set_default_signals into afterfork, which does the sigprocmask too. This is necessary for processes we fork after setup_signal_handling(), which otherwise inherit our blocking mask and non-default handlers. Call it after each fork() (except the ones we use for daemonising). As a consequence: - hackypar children will die if they get a terminating signal - our subprocesses such as `route' and `ifconfig' will inherit reasonable signal setups - it will be correct to call udp_make_socket during phase RUN (previously any authbind would get a strange signal setup) Signed-off-by: Ian Jackson ---