]> arthur.barton.de Git - netdata.git/commitdiff
signal handler info log
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 14 Sep 2015 12:53:55 +0000 (15:53 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 14 Sep 2015 12:53:55 +0000 (15:53 +0300)
src/daemon.c

index e40040f6c6d5a931ff24860f879536a44c185ef7..c8c363910cadf74a6628cdd32bcf9e84487d058e 100755 (executable)
@@ -30,7 +30,7 @@ void sig_handler(int signo)
                case SIGHUP:
                case SIGFPE:
                case SIGSEGV:
-                       debug(D_EXIT, "Signaled exit (signal %d). Errno: %d (%s)", signo, errno, strerror(errno));
+                       info("Signaled exit (signal %d). Errno: %d (%s)", signo, errno, strerror(errno));
                        signal(SIGCHLD, SIG_IGN);
                        signal(SIGPIPE, SIG_IGN);
                        signal(SIGTERM, SIG_IGN);
@@ -46,6 +46,7 @@ void sig_handler(int signo)
                        break;
 
                case SIGPIPE:
+                       info("Signaled PIPE (signal %d). Errno: %d (%s)", signo, errno, strerror(errno));
                        // this is received when web clients send a reset
                        // no need to log it.
                        // info("Ignoring signal %d. Errno: %d (%s)", signo, errno, strerror(errno));