Relay electron exit code

This commit is contained in:
Amos Wenger 2015-10-06 22:45:12 +02:00
parent 0b267d3fa6
commit 02f5fabd6c

View file

@ -4,4 +4,7 @@ var electron = require('./')
var proc = require('child_process')
proc.spawn(electron, process.argv.slice(2), {stdio: 'inherit'});
var child = proc.spawn(electron, process.argv.slice(2), {stdio: 'inherit'});
child.on('close', function (code) {
process.exit(code);
})