errno = 0;
if(kill(pid, 0) == -1) {
switch(errno) {
- case ESRCH:
+ case ESRCH:
error("Request to kill pid %d, but it is not running.", pid);
break;
}
else {
errno = 0;
-
- void (*old)(int);
+
+ void (*old)(int);
old = signal(sig, SIG_IGN);
if(old == SIG_ERR) {
error("Cannot overwrite signal handler for signal %d", sig);
if(ret == -1) {
switch(errno) {
- case ESRCH:
+ case ESRCH:
error("Cannot kill pid %d, but it is not running.", pid);
break;
pthread_join(w->thread, NULL);
}
- int i;
+ int i;
for (i = 0; static_threads[i].name != NULL ; i++) {
if(static_threads[i].thread) {
debug(D_EXIT, "Stopping %s thread", static_threads[i].name);
}
// --------------------------------------------------------------------
-
+
for (i = 0; static_threads[i].name != NULL ; i++) {
struct netdata_static_thread *st = &static_threads[i];