1
0
Fork 0
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:
Andy Green 2020-07-17 13:52:13 +01:00
parent 1c3b7a2653
commit a59035d821

View file

@ -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)