mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-25 12:29:43 +00:00
executor: don't print all waitpid debug messages
This commit is contained in:
parent
a92b8c76c3
commit
9e2ea41475
@ -211,11 +211,14 @@ int main()
|
||||
uint64_t start = current_time_ms();
|
||||
for (;;) {
|
||||
int res = waitpid(pid, &status, __WALL | WNOHANG);
|
||||
debug("waitpid(%d)=%d (%d)\n", pid, res, errno);
|
||||
if (res == pid)
|
||||
int errno0 = errno;
|
||||
if (res == pid) {
|
||||
debug("waitpid(%d)=%d (%d)\n", pid, res, errno0);
|
||||
break;
|
||||
}
|
||||
usleep(1000);
|
||||
if (current_time_ms() - start > 5 * 1000) {
|
||||
debug("waitpid(%d)=%d (%d)\n", pid, res, errno0);
|
||||
debug("killing\n");
|
||||
kill(-pid, SIGKILL);
|
||||
kill(pid, SIGKILL);
|
||||
|
Loading…
Reference in New Issue
Block a user