projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eab219
)
cgi add generic wait as antizombie defence
author
Andy Green
<andy@warmcat.com>
Wed, 4 May 2016 04:23:27 +0000
(12:23 +0800)
committer
Andy Green
<andy@warmcat.com>
Wed, 4 May 2016 04:23:27 +0000
(12:23 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index 60da78efda3c5adb2641abc17196a15e3e88a2cc..400f65598495de9d061655f5be8b05f67e02eb77 100644
(file)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-2305,6
+2305,11
@@
lws_cgi_kill_terminated(struct lws_context_per_thread *pt)
}
#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;
}
#endif