From b8d69eff1a651137b555500228df7ededda0b7ab Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 21 Apr 2008 21:48:28 +0000 Subject: [PATCH] Don't point STDOUT to SOCK --- fastrpc.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {