another <case> converted to sysread
authorDaniel Stenberg <daniel@haxx.se>
Mon, 2 May 2005 11:55:17 +0000 (11:55 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 2 May 2005 11:55:17 +0000 (11:55 +0000)
tests/ftpserver.pl

index 4c7643a..abc0f74 100644 (file)
@@ -123,7 +123,8 @@ sub startsf {
     print STDERR "$cmd\n" if($verbose);
 
     print SFWRITE "PING\n";
-    my $pong = <SFREAD>;
+    my $pong;
+    sysread SFREAD, $pong, 5;
 
     if($pong !~ /^PONG/) {
         logmsg "Failed sockfilt command: $cmd\n";