mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-16 12:07:16 +08:00
15 lines
334 B
JavaScript
15 lines
334 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);
|
|
});
|