fixed kill
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 31 Jul 2009 17:41:19 +0000 (17:41 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 31 Jul 2009 17:41:19 +0000 (17:41 +0000)
lib/PXElator/httpd.pm

index de24be0..397d859 100644 (file)
@@ -201,7 +201,7 @@ sub get_request {
                print $client $redirect, start_stop($1);
        } elsif ( $path =~ m{^/kill/static/(\d+)} ) {
                print $client $redirect;
-               kill 9, $1 && warn "killed $1";
+               kill 1, $1 || kill 9, $2 && warn "killed $1";
        } elsif ( $path eq '/exit' ) {
 #              DESTROY;
                exit 0;