--- a/sap-vpn.pl Thu Nov 13 22:12:32 2008 +0000
+++ b/sap-vpn.pl Thu Nov 13 22:16:35 2008 +0000
@@ -273,7 +273,7 @@
sub do_kill($) {
my $linkname = shift;
open((my $fh), $_ = "/var/run/ppp-$linkname.pid")
- or die ME . ": Can't open the link file \"$_\": $!\n";
+ or die ME . ": Can't open the link file \"$_\": $!\n";
my $pid = <$fh>;
my $iface = <$fh>;
@@ -284,10 +284,13 @@
# real uid is 0
kill 15, $pid or die ME . ": Can't kill pid $pid: $!\n";
- waitpid $pid, 0 != -1
- or die ME . ": was not able to wait for the ppp process: $!\n";
+ waitpid $pid, 0 != -1
+ or die ME . ": was not able to wait for the ppp process: $!\n";
- verbose "% process killed, rc: @{[$? >> 8]}, sig: @{[$? & 0xff]}\n";
+ verbose "% process killed, rc: "
+ . ($? >> 8)
+ . ", sig: "
+ . ($? & 0xff) . "\n";
}
__END__