Skip to content

Commit

Permalink
fix wait.cc bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Nov 22, 2018
1 parent 208ae13 commit 38753b4
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
Expand Up @@ -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;
}
Expand Down

0 comments on commit 38753b4

Please sign in to comment.