]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
HTTPServer:: mark process in shutdown phase
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 2 Jan 2015 07:54:16 +0000 (08:54 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 2 Jan 2015 07:54:16 +0000 (08:54 +0100)
So that we can see what workers already closed the socket.

PVE/HTTPServer.pm

index 3f402724585805e412e7528e2170e114213344d5..3ec5d1d84355e8677d1ca67f68c44bd5b712d71c 100755 (executable)
@@ -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;