summaryrefslogtreecommitdiff
path: root/src/activate/activate.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-11-30 15:07:43 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-01 12:41:17 +0100
commite28c7cd0665364bb910fe2cead882623c23c28ac (patch)
tree7ec5121edaf9a14ddca59385bb7e3e817f7092be /src/activate/activate.c
parent7b4318b6a51e996fcd17855bbef21f8ad3c08da9 (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.c2
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,
};