|
|
@ -5022,6 +5022,7 @@ int check_events(EVENTS *events) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (pid == 0) { |
|
|
|
if (pid == 0) { |
|
|
|
char buf1[16], buf2[16], buf3[16], buf4[16]; |
|
|
|
char buf1[16], buf2[16], buf3[16], buf4[16]; |
|
|
|
|
|
|
|
int e; |
|
|
|
snprintf(buf1, sizeof(buf1), "%d", events->id); |
|
|
|
snprintf(buf1, sizeof(buf1), "%d", events->id); |
|
|
|
snprintf(buf2, sizeof(buf2), "%d", limit); |
|
|
|
snprintf(buf2, sizeof(buf2), "%d", limit); |
|
|
|
snprintf(buf3, sizeof(buf3), "%d", tyme); |
|
|
|
snprintf(buf3, sizeof(buf3), "%d", tyme); |
|
|
@ -5030,10 +5031,11 @@ int check_events(EVENTS *events) |
|
|
|
execl(cmd, cmd, buf1, name, buf2, buf3, buf4, |
|
|
|
execl(cmd, cmd, buf1, name, buf2, buf3, buf4, |
|
|
|
events->createinet, st, |
|
|
|
events->createinet, st, |
|
|
|
cause_str(cause), NULL); |
|
|
|
cause_str(cause), NULL); |
|
|
|
|
|
|
|
e = errno; |
|
|
|
LOGERR("%s() ALERT fork failed to execute (%d)", |
|
|
|
LOGERR("%s() ALERT fork failed to execute (%d)", |
|
|
|
__func__, errno); |
|
|
|
__func__, e); |
|
|
|
FREENULL(st); |
|
|
|
FREENULL(st); |
|
|
|
exit(0); |
|
|
|
_exit(0); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return lifetime; |
|
|
|
return lifetime; |
|
|
|