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.
This commit is contained in:
Lennart Poettering
2016-12-01 12:41:17 +01:00
parent 7b4318b6a5
commit e28c7cd066
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -3632,7 +3632,7 @@ static int run(int master,
static const struct sigaction sa = {
.sa_handler = nop_signal_handler,
.sa_flags = SA_NOCLDSTOP,
.sa_flags = SA_NOCLDSTOP|SA_RESTART,
};
_cleanup_release_lock_file_ LockFile uid_shift_lock = LOCK_FILE_INIT;