mirror of
https://github.com/Raghu-Ch/nodeRestAPI.git
synced 2026-02-11 21:23:03 -05:00
initial commit
This commit is contained in:
16
node_modules/flagged-respawn/test/bin/signal.js
generated
vendored
Normal file
16
node_modules/flagged-respawn/test/bin/signal.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const flaggedRespawn = require('../../');
|
||||
|
||||
flaggedRespawn(['--harmony'], process.argv, function (ready, child) {
|
||||
|
||||
if (ready) {
|
||||
setTimeout(function() {
|
||||
process.exit();
|
||||
}, 100);
|
||||
} else {
|
||||
console.log('got child!');
|
||||
child.kill('SIGHUP');
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user