summaryrefslogtreecommitdiff
path: root/make/template
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-12-28 19:40:25 +0000
committerSadie Powell <sadie@witchery.services>2020-12-31 22:54:50 +0000
commitdac5a72ac3289c43ba37495ab8966b4b3861e9a1 (patch)
treed3684af923f632549a8278374b7c7341d3c01d6e /make/template
parent2b7c3967087eb231ce074b67157b6d67cc0c79eb (diff)
Use the builtin Perl kill function not system.
Diffstat (limited to 'make/template')
-rw-r--r--make/template/inspircd2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/template/inspircd b/make/template/inspircd
index c4e5bd202..0150bb994 100644
--- a/make/template/inspircd
+++ b/make/template/inspircd
@@ -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 {