eltro/test/kill/runner.mjs

11 lines
288 B
JavaScript
Raw Normal View History

import { spawn } from 'child_process'
2023-10-31 14:07:48 +00:00
console.log('primary', process.pid)
let secondary = spawn('node', ['./test/kill/second_runner.mjs'])
secondary.stdout.on('data', function(data) {
process.stdout.write(data)
})
2023-10-31 14:07:48 +00:00
setInterval(function() { console.log('primary', process.pid) }, 100)