From: Suchang Woo Date: Wed, 29 Jul 2015 11:21:06 +0000 (+0900) Subject: daemon: fix infinite loop caused by SIGPIPE X-Git-Tag: accepted/tizen/mobile/20150730.014245^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf671802c36242c27350a29dd7f160b4b838e32e;p=platform%2Fcore%2Fsystem%2Fbuxton2.git daemon: fix infinite loop caused by SIGPIPE If bxt_err() makes SIGPIPE, Buxton daemon falls into infinite loop because bxt_err() is also used in signalfd callback when SIGPIPE is received. bxt_err() can makes SIGPIPE if Buxton daemon is launched by systemd and stderr is redirected to systemd-journal socket. Change-Id: I112079fdf3c3548f7b0667b595cbd79e985c4d64 Signed-off-by: Suchang Woo --- diff --git a/daemon/daemon.c b/daemon/daemon.c index 3146a75..1c13537 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -69,7 +69,7 @@ static gboolean signal_cb(gint fd, GIOCondition cond, gpointer data) g_main_loop_quit(bxtd->loop); break; case SIGPIPE: - bxt_err("SIGPIPE received"); + /* Ignore signal */ break; }