develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [perl #24204] Dupping STDERR for reading.

Thread Previous | Thread Next
Nick Ing-Simmons
October 24, 2003 02:42
Re: [perl #24204] Dupping STDERR for reading.
Message ID:
John Peacock <> writes:
>Matt Sergeant wrote:
>> You're absolutely right. It (qmail-queue) reads from STDOUT, not STDERR.
>Minor quibble; qmail-queue reads from fd1, which is typically assigned to

With perl STDOUT and fd1 are quite closely linked. There is a pile of 
dup logic in doio.c which goes out of its way to keep STDOUT and fd1 
identical. There are some messy edge cases which I never got to grips
with ...

>DJB's newer software that requires multiple datastreams tends to read
>from fd5,fd6,etc.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About