Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A node.js binding to the waitpid() syscall, for when you really just want to block and wait for a child process for a minute.
C++ JavaScript Python
branch: master
Failed to load latest commit information.
lib [init] First commit.
src Fix busy-looping [doc] Basic README
binding.gyp [init] First commit.
package.json [dist] Bump version to 0.1.1


Ever been running a child process, and wished you could just make the parent node.js process stop and wait until that child exited?

Well, thanks to the tangential needs of some dubious mad science, now you can, without all the weeping and gnashing of teeth.

var waitpid = require('waitpid');

var status = waitpid(;

Assuming a child process spawned as child above, waitpid will suspend the parent until the child is finished.

Why would you ever do such a thing!?

Like I said, mad science. It will make sense eventually.

Something went wrong with that request. Please try again.