diff options
-rwxr-xr-x | src/sessiond/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sessiond/main.c b/src/sessiond/main.c index d0e4db6..23317d9 100755 --- a/src/sessiond/main.c +++ b/src/sessiond/main.c @@ -72,6 +72,12 @@ _install_sighandlers (GMainLoop *main_loop) WARN ("failed to ignore SIGINT: %s", strerror_r(errno, strerr_buf, MAX_STRERROR_LEN)); } + if (signal (SIGPIPE, SIG_IGN) == SIG_ERR) + { + gchar strerr_buf[MAX_STRERROR_LEN] = {0,}; + WARN ("failed to ignore SIGPIPE: %s", strerror_r(errno, strerr_buf, MAX_STRERROR_LEN)); + } + source = g_unix_signal_source_new (SIGTERM); g_source_set_callback (source, _handle_quit_signal, |