mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 13:11:33 +00:00
added fix for older linux systems
This commit is contained in:
+1
-1
@@ -1741,7 +1741,7 @@ static void emperor_cleanup() {
|
||||
|
||||
void emperor_loop() {
|
||||
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && defined(PR_SET_CHILD_SUBREAPER)
|
||||
if (uwsgi.emperor_use_fork_server || uwsgi.emperor_subreaper) {
|
||||
if (prctl(PR_SET_CHILD_SUBREAPER, 1, 0, 0, 0)) {
|
||||
uwsgi_error("uwsgi_fork_server()/fork()");
|
||||
|
||||
Reference in New Issue
Block a user