Relay electron exit code
This commit is contained in:
parent
0b267d3fa6
commit
02f5fabd6c
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue