* Doh! Calling `system' in an END block causes the exit status in $?

to be changed to 0.
This commit is contained in:
Eelco Dolstra 2010-02-04 02:05:22 +00:00
parent e51a276907
commit 3cfe65e516

View file

@ -32,6 +32,6 @@ sub closeSSHConnection {
}
}
END { closeSSHConnection; }
END { my $saved = $?; closeSSHConnection; $? = $saved; }
return 1;