mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
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 () {
|
|
setImmediate(function () {
|
|
process.send('ok');
|
|
process.exit(0);
|
|
});
|
|
});
|