Skip to content
Snippets Groups Projects
Commit 8b024546 authored by Andy Green's avatar Andy Green
Browse files

cgi add generic wait as antizombie defence


Signed-off-by: default avatarAndy Green <andy@warmcat.com>
parent 4eab2197
Branches
Tags
No related merge requests found
...@@ -2305,6 +2305,11 @@ lws_cgi_kill_terminated(struct lws_context_per_thread *pt) ...@@ -2305,6 +2305,11 @@ lws_cgi_kill_terminated(struct lws_context_per_thread *pt)
} }
#endif #endif
/* general anti zombie defence */
n = waitpid(-1, &status, WNOHANG);
if (n > 0)
lwsl_notice("%s: anti-zombie wait says %d\n", __func__, n);
return 0; return 0;
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment