Permalink
Browse files

[api] Return the new pid from prefork().

  • Loading branch information...
1 parent 6b4c2f1 commit 4201dbaba1188ee002240d208808495fa5c2110a @AvianFlu committed May 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/prefork.js
View
3 lib/prefork.js
@@ -29,5 +29,6 @@ module.exports = function (options) {
errfd
];
}
- prefork(customFds);
+ process.pid = prefork(customFds);
+ return process.pid;
};

0 comments on commit 4201dba

Please sign in to comment.