in reply to Re: Can't close STDIN/STDOUT/STDERR
in thread Can't close STDIN/STDOUT/STDERR

I'm really confused... I think I need to close the ACTUAL STDOUT/in/err because I'm trying to run a CGI script that takes a very long time to process. I want the parent to return an HTML confirmation page after it waits 30 seconds (in case the child finishes quickly).

Replies are listed 'Best First'.
Re^3: Can't close STDIN/STDOUT/STDERR
by salva (Canon) on Feb 09, 2010 at 21:54 UTC
    As ikegami has already toll you, reopen STDIN/STDOUT/STDERR to /dev/null.

    Though, until you get your program working right, it would be probably better to redirect STDOUT/STDERR to some file you can read (i.e. /tmp/out).