Questionnaire-of-the-Facebo.../node_modules/pstree.remy/tests/fixtures/index.js

14 lines
282 B
JavaScript
Raw Permalink Normal View History

2021-03-11 01:43:28 +00:00
const spawn = require('child_process').spawn;
function run() {
spawn(
'sh',
['-c', 'node -e "setInterval(() => console.log(`running`), 200)"'],
{
stdio: 'pipe',
}
);
}
var runCallCount = process.argv[2] || 1;
for (var i = 0; i < runCallCount; i++) run();