Commit af50d454 authored by Richard Levitte's avatar Richard Levitte
Browse files

TLSProxy: When in debug mode, show the exact subprocess commands



When you want to debug a test that goes wrong, it's useful to know
exactly what subprocess commands are run.

Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3342)
(cherry picked from commit 46d5e2b4)
parent 4fc3523f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -159,6 +159,9 @@ sub start
        if ($self->serverflags ne "") {
            $execcmd .= " ".$self->serverflags;
        }
        if ($self->debug) {
            print STDERR "Server command: $execcmd\n";
        }
        exec($execcmd);
    }
    $self->serverpid($pid);
@@ -217,6 +220,9 @@ sub clientstart
            if ($self->clientflags ne "") {
                $execcmd .= " ".$self->clientflags;
            }
            if ($self->debug) {
                print STDERR "Client command: $execcmd\n";
            }
            exec($execcmd);
        }
    }