diff options
author | John Crispin <blogic@openwrt.org> | 2013-04-22 12:58:01 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-04-23 18:54:03 +0200 |
commit | 7edfbb45edcf275a855f5e1f5cc24cac81e382ff (patch) | |
tree | 1393c0bbd9cb52cebfb0d08155bb4f6d018a02ef | |
parent | 32f1c6e4679b6e0737616f3e58528531e826a3ce (diff) | |
download | unitd-7edfbb45edcf275a855f5e1f5cc24cac81e382ff.tar unitd-7edfbb45edcf275a855f5e1f5cc24cac81e382ff.zip |
ignore sigpipe
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r-- | signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,7 +85,7 @@ struct sigaction sa_dummy = { void procd_signal(void) { - sigaction(SIGPIPE, &sa_dummy, NULL); + signal(SIGPIPE, SIG_IGN); if (getpid() != 1) return; sigaction(SIGTERM, &sa_shutdown, NULL); |