From dac5a72ac3289c43ba37495ab8966b4b3861e9a1 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 28 Dec 2020 19:40:25 +0000 Subject: Use the builtin Perl kill function not system. --- make/template/inspircd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make/template') 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 { -- cgit v1.2.3