TLM session daemon uses several communication libraries like syslog, pam, and so on.
Thus, basically it should handle SIGPIPE.
Otherwise, the daemon will be exited unexpectedly, it will make user-session unstable.
Change-Id: Idd52ba703f3e732b6ccc6c9f1a35c18a952c0f9b
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,