@lelouchhe/webagent 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/daemon.js +2 -2
- package/package.json +1 -1
package/lib/daemon.js
CHANGED
|
@@ -86,7 +86,7 @@ async function cmdStart(pidFile, logFile, args) {
|
|
|
86
86
|
const resolved = resolveArgs(args);
|
|
87
87
|
const daemonJs = join(__dirname, "daemon.js");
|
|
88
88
|
const log = openSync(logFile, "a");
|
|
89
|
-
const child = spawn(process.execPath, [daemonJs, "__supervisor", ...resolved], { detached: true, stdio: ["ignore", log, log], cwd: process.cwd() });
|
|
89
|
+
const child = spawn(process.execPath, [daemonJs, "__supervisor", ...resolved], { detached: true, stdio: ["ignore", log, log], cwd: process.cwd(), windowsHide: true });
|
|
90
90
|
child.unref();
|
|
91
91
|
closeSync(log);
|
|
92
92
|
// Poll for PID file (supervisor writes it on startup)
|
|
@@ -204,7 +204,7 @@ function runSupervisor(serverArgs) {
|
|
|
204
204
|
let timer = null;
|
|
205
205
|
function spawnServer() {
|
|
206
206
|
lastStart = Date.now();
|
|
207
|
-
child = spawn(process.execPath, [serverJs, ...serverArgs], { stdio: "inherit" });
|
|
207
|
+
child = spawn(process.execPath, [serverJs, ...serverArgs], { stdio: "inherit", windowsHide: true });
|
|
208
208
|
child.on("exit", onChildExit);
|
|
209
209
|
}
|
|
210
210
|
function onChildExit(code, signal) {
|