1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

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"; print "HTTPS server: $cmd\n";
} }
system($cmd); my $rc = system($cmd);
$rc >>= 8;
if($rc) {
print STDERR "stunnel exited with $rc!\n";
}
unlink $conffile; unlink $conffile;
exit $rc;