keep child open

This commit is contained in:
Simon Knott 2024-12-22 12:44:06 +01:00
parent 6c85be4a2f
commit caa941a575
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -755,7 +755,7 @@ test.describe('kill option', () => {
'child.js': `
process.on('SIGINT', () => { console.log('%%childprocess received SIGINT'); setTimeout(() => process.exit(), 10) })
process.on('SIGTERM', () => { console.log('%%childprocess received SIGTERM'); setTimeout(() => process.exit(), 10) })
process.on('message', () => {}) // somehow, this line is needed to receive signals in a forked child process
setTimeout(() => {}, 100000) // prevent child from exiting
`,
'web-server.js': `
require("node:child_process").fork('./child.js', { silent: false })