diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2016-12-09 10:47:48 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2016-12-09 10:47:48 +1300 |
commit | b6b9140f3d09513ae27495e37f57ef2541935287 (patch) | |
tree | f9d84e79ba4a1aeeea9edefbc9d214b2f95859ba | |
parent | c66a3e177070ca4fd301a7ad3f266cf137b82904 (diff) | |
parent | 3b58d1493efd98f11ab578d9b8a7e650d800806e (diff) | |
download | lightdm-git-b6b9140f3d09513ae27495e37f57ef2541935287.tar.gz |
Use SA_RESTART on signals so we don't get interrupted reads
-rw-r--r-- | src/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 75357db6..6f07e4e5 100644 --- a/src/process.c +++ b/src/process.c @@ -458,7 +458,7 @@ process_class_init (ProcessClass *klass) g_io_add_watch (g_io_channel_unix_new (signal_pipe[0]), G_IO_IN, handle_signal, NULL); action.sa_sigaction = signal_cb; sigemptyset (&action.sa_mask); - action.sa_flags = SA_SIGINFO; + action.sa_flags = SA_SIGINFO | SA_RESTART; sigaction (SIGTERM, &action, NULL); sigaction (SIGINT, &action, NULL); sigaction (SIGHUP, &action, NULL); |