Re: [Exim] Re: Exim 4.33 local_scan() problem

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andrew - Supernews
Date:  
À: exim-users
Sujet: Re: [Exim] Re: Exim 4.33 local_scan() problem
>>>>> "Tom" == Tom Kistner <tom@???> writes:

Tom> Exim closes STDIN/STDOUT/STDERR, so fd's 0,1 and 2 can are
Tom> re-used for other purposes.


This is insane and should be fixed immediately.

It might have made sense years ago to leave the standard descriptors
free for other uses, but with the amount of stuff that Exim now
includes (especially when you consider embedded languages, database
interfaces, etc) it is _bloody dangerous_ to assume that nothing is
ever going to touch stderr unexpectedly.

If you close stderr and don't plan on immediately reopening it, then
always, always point it at /dev/null instead.

--
Andrew, Supernews
http://www.supernews.com