Skip to content

Commit

Permalink
Run process detached from its parent on Linux (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
GAumala authored and kevva committed Sep 14, 2017
1 parent eb99a73 commit b9f7e56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ module.exports = (target, opts) => {

if (!opts.wait) {
// `xdg-open` will block the process unless
// stdio is ignored even if it's unref'd
cpOpts.stdio = 'ignore';
// stdio is ignored and it's detached from the parent
// even if it's unref'd
cpOpts.stdio = 'ignore';
cpOpts.detached = true;
}
}

Expand Down

0 comments on commit b9f7e56

Please sign in to comment.