On Tue, Jul 10, 2001 at 01:25:11PM -0700, Alex Hathaway allegedly wrote:
> Hey Ian,
> 
> I have... Over three times now. No one has had any solid answers. One fellow
> suggested it was with the SIGPIPE signal, but didn't give me any idea on how
> to remedy it. So, I had to find another way around it.

You need to find out what the problem is. It's real simple, either
mailman is exiting with a non-zero exit code or it's exiting prior to
reading all of the message from the pipe. Both of these are conditions
which preline treats as errors. Consequently preline exits in such a
way that the delivery is tried later in the hope that the mail admin
notices and fixes the problem.

You need to find out which of those two conditions are occuring - and
it's fundamentally a mailman issue.

If mailman is exiting non-zero, why is it doing so? A non-zero exit is
a programs way of telling you something is wrong. Listen to it.

If mailman is exiting without reading all of the message, why is it
doing so? Surely if it hasn't read all of the message then it cannot
have safely stored it, yes?

> It also executes flawlessly when I take that bit of code out of
> preline. Not even a ghost proc or crash.

Of course - but that proves nothing. You've told preline to ignore all
errors from the child. Put another way, you said process the mail but
don't tell me whether it worked or not. If mailman ever gets a genuine
error, such as quota full or somesuch you'll never know and the mail
will simply disappear.

The "solid answer" as you put it, is to find out what mailman is doing
and why.


Regards.

> 
> Sincerely,
> -Confuzzled Lexx.
> 
> -----Original Message-----
> From: Ian Lance Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 12:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Dangers of modifying preline.c
> 
> 
> "Alex Hathaway" <[EMAIL PROTECTED]> writes:
> 
> > Is there any dangers in commenting out the lines:
> >
> > /*  if (wait_crashed(wstat))
> >     strerr_die2x(111,FATAL,"child crashed"); */
> >
> > in preline.c ?
> 
> Yes.  If the program run by preline crashes unexpectedly, your mail
> will be lost.  If you leave the lines in there, your mail will be
> resent later.
> 
> I suspect that you have some problem which you are trying to address
> by commenting out those lines.  You are likely to get better advice if
> you describe the problem.
> 
> Ian
> 

Reply via email to