Re: [exim-dev] Preliminary testing of a new Exim test suite

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: John Jetmore
CC: exim-dev
Betreff: Re: [exim-dev] Preliminary testing of a new Exim test suite
On Fri, 21 Oct 2005, John Jetmore wrote:

> While poking around, I see that the groundwork for a SIGPIPE handler has
> been layed:
>
> sub pipehandler { $sigpipehappened = 1; }
> [cut]
> # For timeout tests, wait before closing the pipe; we expect a
> # SIGPIPE error in this case.
> [cut]
> $sigpipehappened = 0;
> close CMD;                # Waits for command to finish

>
> But pipehandler() never actually gets assigned to $SIG{PIPE} that I can
> see. Maybe this got lost in transition?


It got lost a long time ago, apparently! I can't find this in the
original script either. Could you please try inserting

$SIG{'PIPE'} = \&pipehandler;

around line 2000 in the script, and see if it helps?


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book