Skip to content

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.

License

Notifications You must be signed in to change notification settings

pmsipilot/node-waitpid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-waitpid

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(child.pid);

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.

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 80.9%
  • JavaScript 11.6%
  • Python 7.5%