12 lines
226 B
JavaScript
12 lines
226 B
JavaScript
|
process.on('uncaughtException', function(error) {
|
||
|
process.send(error.message);
|
||
|
process.exit(1);
|
||
|
});
|
||
|
|
||
|
process.on('message', function(msg) {
|
||
|
setImmediate(function() {
|
||
|
process.send('ok');
|
||
|
process.exit(0);
|
||
|
});
|
||
|
});
|