Remove warning in signal handler.
For more information check #400.
Simon Nagl committed
May 12, 2016 at 09:20 UTC
b0e1d373dfd7989baa3bdcf9c93ccc6b3547c758
1 file changed
+2
-1
src/daemon.c
+2
-1
@@ -30,7 +30,8 @@ int pidfd = -1;
30
31
void sig_handler(int signo)
32
{
33
- netdata_exit = 1;
33
+ if(signo)
34
+ netdata_exit = 1;
35
}
36
37
int become_user(const char *username)