Commit c212ebbd authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent 83b8de3d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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;