mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-03 15:38:36 +00:00
close pipe and config file descriptors when back to on-demand mode
This commit is contained in:
@@ -1887,6 +1887,8 @@ recheck:
|
||||
// back to on_demand mode ...
|
||||
else if (ui_current->status == 2) {
|
||||
event_queue_add_fd_read(uwsgi.emperor_queue, ui_current->on_demand_fd);
|
||||
close(ui_current->pipe[0]);
|
||||
if (ui_current->use_config) close(ui_current->pipe_config[0]);
|
||||
ui_current->pid = -1;
|
||||
ui_current->status = 0;
|
||||
ui_current->cursed_at = 0;
|
||||
|
||||
Reference in New Issue
Block a user