We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e515d2 commit 355093dCopy full SHA for 355093d
1 file changed
src/process.c
@@ -84,6 +84,9 @@ void process_start(int app_index)
84
else if(pid == 0)
85
{
86
// Child process
87
+ // Create new session to detach from parent's terminal/process group
88
+ // The child processes should be started in their own process group so they don't receive signals meant for the watchdog
89
+ setsid();
90
// Close inherited file descriptors (except stdin/stdout/stderr)
91
int max_fd = (int)sysconf(_SC_OPEN_MAX);
92
0 commit comments