From: Daniel Stenberg Date: Mon, 2 May 2005 11:31:15 +0000 (+0000) Subject: read from the open2 filehandle with sysread, not X-Git-Tag: curl-7_14_0~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02ae3c2810a58ba4420417f914835314a6c56377;p=curl read from the open2 filehandle with sysread, not --- diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 77c800221..4c7643ad7 100644 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -541,7 +541,9 @@ sub PASV_command { "./server/sockfilt --port 0 --logfile log/sockdata$ftpdnum$ext.log --pidfile .sockdata$ftpdnum$ext.pid $ipv6"); print DWRITE "PING\n"; - my $pong = ; + my $pong; + + sysread(DREAD, $pong, 5) || die; if($pong !~ /^PONG/) { kill(9, $slavepid); @@ -668,7 +670,8 @@ sub PORT_command { "./server/sockfilt --connect $port --logfile log/sockdata$ftpdnum$ext.log --pidfile .sockdata$ftpdnum$ext.pid $ipv6"); print DWRITE "PING\n"; - my $pong = ; + my $pong; + sysread DREAD, $pong, 5; if($pong !~ /^PONG/) { logmsg "Failed sockfilt for data connection\n";