TLSProxy/Proxy.pm: handle -1 as return value from waitpid.
authorAndy Polyakov <appro@openssl.org>
Sun, 8 Apr 2018 12:44:59 +0000 (14:44 +0200)
committerAndy Polyakov <appro@openssl.org>
Fri, 13 Apr 2018 08:12:01 +0000 (10:12 +0200)
commit6b3e8b94301d1081e88d276eeb452668c8f13632
treed29cf1a682e840edf40c2b41a08fdc9925d6f0d9
parent362ff3c39703633ac53ba9130c7acc02177bedc5
TLSProxy/Proxy.pm: handle -1 as return value from waitpid.

On rare occasion 's_server | perl -ne print' can complete before
corresponding waitpid, which on Windows can results in -1 return
value. This is not an error, don't treat it like one. Collect
even return value from s_server.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5907)
util/perl/TLSProxy/Proxy.pm