mirror of
https://github.com/electron/electron.git
synced 2026-02-08 06:05:03 -05:00
15 lines
328 B
JavaScript
15 lines
328 B
JavaScript
process.on('uncaughtException', function (error) {
|
|
process.send(error.stack)
|
|
})
|
|
|
|
var child = require('child_process').fork(__dirname + '/ping.js')
|
|
process.on('message', function (msg) {
|
|
child.send(msg)
|
|
})
|
|
child.on('message', function (msg) {
|
|
process.send(msg)
|
|
})
|
|
child.on('exit', function (code) {
|
|
process.exit(code)
|
|
})
|