Check the exit code from the server process
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 10 Jan 2017 08:22:05 +0000 (09:22 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 23 Jan 2017 10:31:37 +0000 (11:31 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2205)
(cherry picked from commit 57a19206b5aad7ca67f0d5ebae05af2799609819)

util/TLSProxy/Proxy.pm

index eeb83ed74f88950c1f67dabde9276fe5993a8eda..49fc15d60f20274bca878582aa5b53120a0c1015 100644 (file)
@@ -299,6 +299,7 @@ sub clientstart
         print "Waiting for server process to close: "
               .$self->serverpid."\n";
         waitpid( $self->serverpid, 0);
+        die "exit code $? from server process\n" if $? != 0;
     }
     return 1;
 }