Skip to content

Commit

Permalink
Fix busy-looping
Browse files Browse the repository at this point in the history
  • Loading branch information
AvianFlu committed Oct 1, 2014
1 parent 7cad9eb commit e34d238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/waitpid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static Handle<Value> Waitpid(const Arguments& args) {
child = args[0]->Int32Value();

do {
r = waitpid(child, &status, WNOHANG);
r = waitpid(child, &status, 0);
} while (r != -1);

Local<Object> result = Object::New();
Expand Down

0 comments on commit e34d238

Please sign in to comment.