]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Revert "Do not confuse TAP::Parser by mixing up stderr with stdout."
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 9 Jan 2025 20:24:44 +0000 (21:24 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 15 Jan 2025 15:05:44 +0000 (16:05 +0100)
This reverts commit 3d3bb26a13dcc67f99e66de6a44ae9ced117f64b.

Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26374)

util/perl/TLSProxy/Proxy.pm

index 8436861668a8b2937349cc1b40ee4c0e9c1df4b1..48c55f48220b2f5468ded5531227d80e2525608e 100644 (file)
@@ -290,14 +290,8 @@ sub start
     if ($self->debug) {
         print STDERR "Server command: $execcmd\n";
     }
-    my $sin = undef;
-    my $sout = undef;
-    if ("$^O" eq "MSWin32") {
-        $pid = IPC::Open2::open2($sout, $sin, $execcmd) or die "Failed to $execcmd: $!\n";
-    } else {
-        $pid = IPC::Open3::open3($sin, $sout, undef, $execcmd) or die "Failed to $execcmd: $!\n";
-    }
 
+    $pid = IPC::Open2::open2(my $sout, my $sin, $execcmd) or die "Failed to $execcmd: $!\n";
     $self->{serverpid} = $pid;
 
     # Process the output from s_server until we find the ACCEPT line, which