[Top][All Lists]
[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
- [bug-grep] [patch] getting '--devices=skip' to work, Benno Schulenberg, 2004/11/17
- Re: [bug-grep] [patch] getting '--devices=skip' to work, Tony Abou-Assaleh, 2004/11/17
- Re: [bug-grep] [patch] getting '--devices=skip' to work, Jim Meyering, 2004/11/18
- Re: [bug-grep] [patch] getting '--devices=skip' to work,
Benno Schulenberg <=
- Re: [bug-grep] [patch] getting '--devices=skip' to work, Paul Jarc, 2004/11/19
- Re: [bug-grep] [patch] getting '--devices=skip' to work, Tim Waugh, 2004/11/19
- Re: [bug-grep] [patch] getting '--devices=skip' to work, Paul Jarc, 2004/11/19
- Re: [bug-grep] [patch] getting '--devices=skip' to work, Jim Meyering, 2004/11/19
- Re: [bug-grep] [patch] getting '--devices=skip' to work, Paul Eggert, 2004/11/19
- Re: [bug-grep] [patch] getting '--devices=skip' to work, Tim Waugh, 2004/11/23