Socket
Book a DemoInstallSign in
Socket

process-tools

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

process-tools

A node.js binding to handle system processes.

unpublished
latest
Source
npmnpm
Version
0.2.7
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

process_tools

Simple binding to wait for a process and all its children (direct or indirect). Compatible with Linux, Windows & Mac OS X.

var child_process = require('child_process'),
    process_tools = require('process_tools');

var childProcess = child_process.spawn("/path/to/complex/app", []);

childProcess.on('exit', (exitCode) => {
  console.log(`The process is terminated with code: ${exitCode}`);
  console.log(`But the app isn't closed yet, due to app's forks !`);
});

var children = process_tools.children(childProcess.pid);

process_tools.waitAll(childProcess.pid, () => {
  console.log('Wait is over!');
});

Keywords

waitpid

FAQs

Package last updated on 13 Jun 2016

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