grep - Bugs: bug #32352, Grep block on FIFO if use without...
You are not allowed to post comments on this tracker with your current authentication level.
bug #32352: Grep block on FIFO if use without -D skip
Submitter: | None | ||
Submitted: | Fri 04 Feb 2011 03:39:18 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed |
Mon 28 Feb 2011 08:36:17 AM UTC, comment #1: |
Paolo Bonzini <bonzini> |
Fri 04 Feb 2011 03:39:18 PM UTC, original submission:
When grep encounter a FIFO it open it without the O_NONBLOCK parameters that made it block indefinitely.
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2011-02-28 | bonzini | Status | None | Invalid | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-4b48.
Corresponding source code
It doesn't block "indefinitely". It blocks until another side opens the FIFO. grep cannot distinguish the user putting the name of a FIFO on the command-line deliberately, versus the user putting "*" on the command-line when a FIFO is part of the current directory. So, this is exactly the use case for "-D skip".