]> granicus.if.org Git - curl/commitdiff
output the exit code from stunnel to stderr in case it is non-zero
authorDaniel Stenberg <daniel@haxx.se>
Mon, 10 Apr 2006 13:10:25 +0000 (13:10 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Apr 2006 13:10:25 +0000 (13:10 +0000)
tests/httpsserver.pl

index 068f89e3e4fd43469644bce904239bd78d40797a..9b4cec0c935bf551e66b2b815ac3f743ad06bfad 100644 (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;