Re: Important Bug Fix (Was Re: Truncation of Majordomo diges…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Robert Black
Fecha:  
A: Warner Losh, Philip Hazel
Cc: Pete Ashdown, Exim Mailing List
Asunto: Re: Important Bug Fix (Was Re: Truncation of Majordomo digest messages?)
On Jun 25, 9:54am, Warner Losh wrote:
> Subject: Re: Important Bug Fix (Was Re: Truncation of Majordomo digest mes
> In message <Pine.SOL.3.96.970625105253.6714I-100000@???>

Philip Hazel writes:
> : +       close(deliver_datafile);
> : +       sprintf(spoolname, "%s/input/%s-D", spool_directory, message_id);
> : +       deliver_datafile = open(spoolname, O_RDWR | O_APPEND);

>
> Wouldn't dup(2) do the trick here? Or is there something subtle that
> I'm missing about how dup(2) works?


No, dup(2) shares the file pointer.

Cheers

Rob