general-functions.pl: Explicitely call new system function

Perl seems to just "guess" that someone no longer wants to use the
builtin "system" command when there is a function with the same name.

I have no idea what kind of liquid they are drinking, but because of the
side effects of that stuff, we explicitely call our system() function.

Not that that would be necessary, but why not waste a couple more CPU
cycles?

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2021-06-18 15:12:53 +00:00
parent f1fc2193a7
commit 2a52353f3c

View File

@@ -113,7 +113,7 @@ sub log
my $logmessage = $_[0];
$logmessage =~ /([\w\W]*)/;
$logmessage = $1;
system('logger', '-t', $tag, $logmessage);
&system('logger', '-t', $tag, $logmessage);
}
sub setup_default_networks
{
@@ -1223,7 +1223,7 @@ sub firewall_needs_reload() {
}
sub firewall_reload() {
system("/usr/local/bin/firewallctrl");
&system("/usr/local/bin/firewallctrl");
}
# Function which will return the used interface for the red network zone (red0, ppp0, etc).