--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
17
node_modules/flagged-respawn/test/bin/respawner.js
generated
vendored
Normal file
17
node_modules/flagged-respawn/test/bin/respawner.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const flaggedRespawn = require('../../');
|
||||
|
||||
// get a list of all possible v8 flags for the running version of node
|
||||
const v8flags = require('v8flags').fetch();
|
||||
|
||||
flaggedRespawn(v8flags, process.argv, function (ready, child) {
|
||||
if (ready) {
|
||||
console.log('Running!');
|
||||
} else {
|
||||
console.log('Special flags found, respawning.');
|
||||
}
|
||||
if (child.pid !== process.pid) {
|
||||
console.log('Respawned to PID:', child.pid);
|
||||
}
|
||||
});
|
||||
Loading…
Reference in a new issue