Commit project

This commit is contained in:
Rodrigo Pedroso 2019-06-19 10:46:14 -04:00
commit 3ac017a5ad
1030 changed files with 94062 additions and 0 deletions

7
node_modules/ps-tree/test/exec/child.js generated vendored Normal file
View file

@ -0,0 +1,7 @@
// does nothing child process
console.log("Child process.id: " + process.pid);
console.log(" - - - - - - - - - - - - - - - - - - - - - - - ");
setTimeout(function () {
/* Does nothing, but prevents exit */
}, 1000);

18
node_modules/ps-tree/test/exec/parent.js generated vendored Normal file
View file

@ -0,0 +1,18 @@
var cp = require('child_process');
var chalk = require('chalk');
var red = chalk.red
var green = chalk.green
var cyan = chalk.cyan;
var count = 0;
while(count < 10) {
var child = cp.exec("node ./test/exec/child.js", function(error, stdout, stderr) {
console.log('stdout: ' + stdout);
console.log(red('stderr: ' + stderr));
if (error !== null) {
console.log(red('exec error: ' + error));
}
})
console.log("child pid: %s | count: %s", child.pid, ++count);
}