From 30c91757bd43f4b766194ace4ec60cdac1e2d633 Mon Sep 17 00:00:00 2001 From: Ildar Sagdejev Date: Sun, 2 Jan 2022 19:48:34 -0500 Subject: [PATCH] Spawn daemon process without setting up an stdio pipe to the parent process The spawned daemon processes don't tend to stay running without this option being provided. Fixes #52 --- lib/hyper/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hyper/index.js b/lib/hyper/index.js index cfacbe5..56d1ed2 100644 --- a/lib/hyper/index.js +++ b/lib/hyper/index.js @@ -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' }) }