Socket
Book a DemoInstallSign in
Socket

waitpid

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waitpid

A node.js binding to the waitpid() syscall.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
2
Created
Source

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.

Keywords

waitpid

FAQs

Package last updated on 18 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts