mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
spawn: only apply deathsig on child
This commit is contained in:
parent
1c3b7a2653
commit
a59035d821
1 changed files with 2 additions and 1 deletions
|
@ -428,7 +428,8 @@ lws_spawn_piped(const struct lws_spawn_piped_info *i)
|
|||
}
|
||||
|
||||
#if defined(__linux__)
|
||||
prctl(PR_SET_PDEATHSIG, SIGTERM);
|
||||
if (!lsp->child_pid)
|
||||
prctl(PR_SET_PDEATHSIG, SIGTERM);
|
||||
#endif
|
||||
|
||||
if (lsp->info.disable_ctrlc)
|
||||
|
|
Loading…
Add table
Reference in a new issue