]> arthur.barton.de Git - netdata.git/commitdiff
Remove warning in signal handler.
authorSimon Nagl <simonnagl@aim.com>
Thu, 12 May 2016 07:20:27 +0000 (09:20 +0200)
committerSimon Nagl <simonnagl@aim.com>
Thu, 12 May 2016 07:20:27 +0000 (09:20 +0200)
For more information check #400.

src/daemon.c

index 2b972c5ae507aa3fbb81acb3118986443ca48203..b7b193dc5e861617f709766b9e2a5c905461db30 100644 (file)
@@ -30,7 +30,8 @@ int pidfd = -1;
 
 void sig_handler(int signo)
 {
-       netdata_exit = 1;
+       if(signo)
+               netdata_exit = 1;
 }
 
 int become_user(const char *username)