A node.js binding to the waitpid() syscall.
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 = ;var status = ;
Assuming a child process spawned as
child above, waitpid will suspend the
parent until the child is finished.
Like I said, mad science. It will make sense eventually.