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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tom Kistner
Dátum:  
Címzett: Matt Bernstein
CC: exim-users
Tárgy: Re: [Exim] Re: Exim 4.33 local_scan() problem
Matt Bernstein wrote:

> I take it back--I've just seen an fd of 4 and one of 1. The failure case
> is so far always 0, and sometimes when fd==0 it still works.


Exim closes STDIN/STDOUT/STDERR, so fd's 0,1 and 2 can are re-used for
other purposes. Thats why you should never write to STDOUT/STDERR in a
local_scan() module - and all underlying libs that you link against also
should not do that. The output may end up on the SMTP channel.

/tom