diff --git a/fastrpc.cgi b/fastrpc.cgi index a5830557a..8ee5844f4 100755 --- a/fastrpc.cgi +++ b/fastrpc.cgi @@ -54,7 +54,9 @@ untie(*STDOUT); # Accept the TCP connection $acptaddr = accept(SOCK, MAIN); die "accept failed!" if (!$acptaddr); -select(SOCK); $| = 1; +$oldsel = select(SOCK); +$| = 1; +select($oldsel); $rcount = 0; while(1) {