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/udev | |
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/udev')
-rw-r--r-- | src/udev/udevadm-monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevadm-monitor.c b/src/udev/udevadm-monitor.c index f631834341..11abebb351 100644 --- a/src/udev/udevadm-monitor.c +++ b/src/udev/udevadm-monitor.c @@ -143,7 +143,7 @@ static int adm_monitor(struct udev *udev, int argc, char *argv[]) { /* set signal handlers */ act.sa_handler = sig_handler; - act.sa_flags = SA_RESTART; + act.sa_flags = SA_RESTART|SA_RESTART; sigaction(SIGINT, &act, NULL); sigaction(SIGTERM, &act, NULL); sigemptyset(&mask); |