Security update to Drupal 8.4.6
[yaffs-website] / node_modules / flagged-respawn / test / bin / respawner.js
1 #!/usr/bin/env node
2
3 const flaggedRespawn = require('../../');
4
5 // get a list of all possible v8 flags for the running version of node
6 const v8flags = require('v8flags').fetch();
7
8 flaggedRespawn(v8flags, process.argv, function (ready, child) {
9   if (ready) {
10     console.log('Running!');
11   } else {
12     console.log('Special flags found, respawning.');
13   }
14   if (child.pid !== process.pid) {
15     console.log('Respawned to PID:', child.pid);
16   }
17 });