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?
In reply to STDOUT changing descritpors by suaveant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |