eltro/test/kill/runner.mjs
TheThing 15d1ba43f4
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
fix kill and make it work better on more platforms
2024-03-01 09:40:14 +00:00

11 lines
No EOL
288 B
JavaScript

import { spawn } from 'child_process'
console.log('primary', process.pid)
let secondary = spawn('node', ['./test/kill/second_runner.mjs'])
secondary.stdout.on('data', function(data) {
process.stdout.write(data)
})
setInterval(function() { console.log('primary', process.pid) }, 100)