Browse Source

Adding unix flag for cross platform support

tags/v0.3.7rc2
haixuanTao 1 year ago
parent
commit
ce4a6ab1b9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      binaries/daemon/src/spawn.rs

+ 2
- 1
binaries/daemon/src/spawn.rs View File

@@ -155,6 +155,7 @@ pub async fn spawn_node(
}

// Set the process group to 0 to ensure that the spawned process does not spawn immediately on CTRL-C
#[cfg(unix)]
command.process_group(0);

command
@@ -253,8 +254,8 @@ pub async fn spawn_node(
command.env(key, value.to_string());
}
}

// Set the process group to 0 to ensure that the spawned process does not spawn immediately on CTRL-C
#[cfg(unix)]
command.process_group(0);

command


Loading…
Cancel
Save