bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-grep] [patch] getting '--devices=skip' to work


From: Tim Waugh
Subject: Re: [bug-grep] [patch] getting '--devices=skip' to work
Date: Thu, 18 Nov 2004 23:36:23 +0000
User-agent: Mutt/1.4.1i

On Thu, Nov 18, 2004 at 10:01:03PM +0100, Benno Schulenberg wrote:

> Jim Meyering wrote:
> > Another way to keep open from blocking on fifos is
> > to use the O_NONBLOCK flag:
> >
> >      while ((desc = open (file, O_RDONLY | O_NONBLOCK)) < 0
> >              && errno == EINTR)
> 
> Thanks, that's much simpler, and it works too.
> 
> Stepan, can this go into cvs?

Stop the bus!  There is a kernel change to do with opening normal
files with O_NONBLOCK having unexpected consequences.  It's best
avoided.

Tim.
*/

Attachment: pgpuD2fMmAceS.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]