Amanda-Users

Re: How can a write to a blocking pipe return EAGAIN?

2009-08-24 17:38:29
Subject: Re: How can a write to a blocking pipe return EAGAIN?
From: stan <stanb AT panix DOT com>
To: "Bret S. Lambert" <bret.lambert AT gmail DOT com>
Date: Mon, 24 Aug 2009 17:14:40 -0400
On Mon, Aug 24, 2009 at 10:39:21PM +0200, Bret S. Lambert wrote:
> On Mon, Aug 24, 2009 at 04:25:39PM -0400, stan wrote:
> >  I am trying to get Amanda of a recent vintage working on 4.5. The developrs
> >  don't understand how writing to a blocking pipe can return EAGAIN.
> >  Should the write just block?
> 
> Yes, it should, and a quick, about-to-go-to-bed readthrough of the
> pipe write path shows that it shouldn't; is Amanda doing fcntls to
> the fd? If so, check those to be absolutely sure that they're not
> doing something hinkey.
> 
Thanks for the quick reply.

I am trying to come up with a small demonstration peice of code to try to
localize teh problem.

-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.

<Prev in Thread] Current Thread [Next in Thread>