mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-19 09:41:07 +02:00
added prctl call to terminate child when nginx worker is killed
This commit is contained in:
parent
54d9d41bf0
commit
eb1baa936e
|
@ -484,6 +484,10 @@ ngx_rtmp_exec_run(ngx_rtmp_exec_t *e)
|
|||
case 0:
|
||||
/* child */
|
||||
|
||||
#if (NGX_LINUX)
|
||||
prctl(PR_GET_PDEATHSIG, SIGKILL, 0, 0, 0);
|
||||
#endif
|
||||
|
||||
/* close all descriptors but pipe write end */
|
||||
maxfd = sysconf(_SC_OPEN_MAX);
|
||||
for (fd = 0; fd < maxfd; ++fd) {
|
||||
|
|
Loading…
Reference in a new issue