do more manual cleanup and specify globals
This commit is contained in:
parent
f47fa25e39
commit
c4b6cf4a8e
10 changed files with 21 additions and 8 deletions
4
spec/fixtures/module/fork_ping.js
vendored
4
spec/fixtures/module/fork_ping.js
vendored
|
@ -1,8 +1,10 @@
|
|||
const path = require('path')
|
||||
|
||||
process.on('uncaughtException', function (error) {
|
||||
process.send(error.stack)
|
||||
})
|
||||
|
||||
var child = require('child_process').fork(__dirname + '/ping.js')
|
||||
var child = require('child_process').fork(path.join(__dirname, '/ping.js'))
|
||||
process.on('message', function (msg) {
|
||||
child.send(msg)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue