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: Benno Schulenberg
Subject: Re: [bug-grep] [patch] getting '--devices=skip' to work
Date: Thu, 18 Nov 2004 22:01:03 +0100
User-agent: KMail/1.5.4

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?

(When the main loop is going to be rewritten someday, though, doing 
the checks before opening anything makes more sense to me.)

By the way, what's up with 2.5.1a?  It's not on any mirror yet, as 
far as I can see.

Benno





reply via email to

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