diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-11-30 15:07:43 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-12-01 12:41:17 +0100 |
commit | e28c7cd0665364bb910fe2cead882623c23c28ac (patch) | |
tree | 7ec5121edaf9a14ddca59385bb7e3e817f7092be /src/activate/activate.c | |
parent | 7b4318b6a51e996fcd17855bbef21f8ad3c08da9 (diff) |
tree-wide: set SA_RESTART for signal handlers we install
We already set it in most cases, but make sure to set it in all others too, and
document that that's a good idea.
Diffstat (limited to 'src/activate/activate.c')
-rw-r--r-- | src/activate/activate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activate/activate.c b/src/activate/activate.c index a0cfc22000..6ebd820410 100644 --- a/src/activate/activate.c +++ b/src/activate/activate.c @@ -339,7 +339,7 @@ static void sigchld_hdl(int sig) { static int install_chld_handler(void) { static const struct sigaction act = { - .sa_flags = SA_NOCLDSTOP, + .sa_flags = SA_NOCLDSTOP|SA_RESTART, .sa_handler = sigchld_hdl, }; |