added prctl call to terminate child when nginx worker is killed

This commit is contained in:
Roman Arutyunyan 2013-01-31 02:04:04 +04:00
parent 54d9d41bf0
commit eb1baa936e

View file

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