output the exit code from stunnel to stderr in case it is non-zero

This commit is contained in:
Daniel Stenberg 2006-04-10 13:10:25 +00:00
parent 83b8de3d43
commit c212ebbdda

View File

@ -82,6 +82,13 @@ if($verbose) {
print "HTTPS server: $cmd\n";
}
system($cmd);
my $rc = system($cmd);
$rc >>= 8;
if($rc) {
print STDERR "stunnel exited with $rc!\n";
}
unlink $conffile;
exit $rc;