From: Dietmar Maurer Date: Fri, 2 Jan 2015 07:54:16 +0000 (+0100) Subject: HTTPServer:: mark process in shutdown phase X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f0ab98b1d1be2e20a4337442ffe59c871ac3ef0c;p=pve-manager-legacy.git HTTPServer:: mark process in shutdown phase So that we can see what workers already closed the socket. --- diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm index 3f402724..3ec5d1d8 100755 --- a/PVE/HTTPServer.pm +++ b/PVE/HTTPServer.pm @@ -1430,6 +1430,8 @@ sub wait_end_loop { undef $self->{socket_watch}; + $0 = "$0 (shutdown)" if $0 !~ m/\(shutdown\)$/; + if ($self->{conn_count} <= 0) { $self->{end_cond}->send(1); return;