Permalink
Browse files

[fix] Workaround for caching of pid by process.pid.

  • Loading branch information...
1 parent 8fc009b commit 6b4c2f189e1e6c902366f22fad0d92c400708f6f @AvianFlu committed May 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/prefork.cc
View
@@ -37,8 +37,8 @@ static Handle<Value> Prefork(const Arguments& args) {
return ThrowException(ErrnoException(errno, "aeternum_dup()"));
}
- // return null, since any error would have made things blow up by now.
- return scope.Close(Null());
+ // return the new pid of the child process.
+ return scope.Close(Integer::New(getpid()));
}

0 comments on commit 6b4c2f1

Please sign in to comment.