From: Daniel Stenberg Date: Mon, 10 Apr 2006 13:10:25 +0000 (+0000) Subject: output the exit code from stunnel to stderr in case it is non-zero X-Git-Tag: curl-7_15_4~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c212ebbdda5f12414151a82668936f90a0baf46f;p=thirdparty%2Fcurl.git output the exit code from stunnel to stderr in case it is non-zero --- diff --git a/tests/httpsserver.pl b/tests/httpsserver.pl index 068f89e3e4..9b4cec0c93 100644 --- a/tests/httpsserver.pl +++ b/tests/httpsserver.pl @@ -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;