]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Use the builtin Perl kill function not system.
authorSadie Powell <sadie@witchery.services>
Mon, 28 Dec 2020 19:40:25 +0000 (19:40 +0000)
committerSadie Powell <sadie@witchery.services>
Thu, 31 Dec 2020 22:54:50 +0000 (22:54 +0000)
make/template/inspircd

index c4e5bd202d43587573e3f7e1bed36f3bcb3c6caf..0150bb994ab7bb69da318fce9749a84c13d7054a 100644 (file)
@@ -172,7 +172,7 @@ sub cmd_rehash()
 {
        if (getstatus() == 1) {
                my $pid = getprocessid();
-               system("kill -HUP $pid >/dev/null 2>&1");
+               kill HUP => $pid;
                print "InspIRCd rehashed (pid: $pid).\n";
                exit GENERIC_EXIT_SUCCESS;
        } else {