Skip to content

Commit

Permalink
Spawn daemon process without setting up an stdio pipe to the parent p…
Browse files Browse the repository at this point in the history
…rocess

The spawned daemon processes don't tend to stay running without this option being provided.

Fixes hypercore-protocol#52
  • Loading branch information
specious committed Jan 3, 2022
1 parent 005b6a1 commit 30c9175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hyper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ async function startDaemon (name, readable) {
const binPath = p.join(daemonRoot, 'bin', 'index.js')
console.error(`${readable} daemon started`)
return spawn('node', [binPath], {
detached: true
detached: true,
stdio: 'ignore'
})
}

Expand Down

0 comments on commit 30c9175

Please sign in to comment.