Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/wait.cc
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ static void signal_handler(int signo)
while(true)
{
pid_t __pid = waitpid(-1, &__stat_loc, WNOHANG);
if (__pid < 0)
if (__pid <= 0)
{
break;
}

0 comments on commit 38753b4

Please sign in to comment.