suaveant has asked for the wisdom of the Perl Monks concerning the following question:
the problem I am coming across, however, is the old closing and opening STDOUT changing the file descriptor of STDOUT. When this happens child processes can't see STDOUT.*STDIN = $c; # $c is child socket select $c; open(STDOUT,">&=".fileno($c));
I believe this is what is causing my problems, but I can't figure out how to ensure that I always open fileno 1. Is there a way to do it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: STDOUT changing descritpors
by Zaxo (Archbishop) on Sep 01, 2004 at 20:21 UTC | |
|
Re: STDOUT changing descritpors (open, no =)
by tye (Sage) on Sep 02, 2004 at 15:49 UTC | |
by suaveant (Parson) on Sep 02, 2004 at 18:33 UTC |