forked from enviPath/enviPy
Current Dev State
This commit is contained in:
16
static/js/ketcher2/node_modules/flagged-respawn/test/bin/signal.js
generated
vendored
Normal file
16
static/js/ketcher2/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