buggrep - 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: 

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".

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.
I know this can be resolved by using -D skip options, but don't know if it's the normal behaviour of grep. I report this, as I thought in that case most user wouldn't understood why grep block.

exemples:

mkfifo toto
grep -R tata *
(grep block waiting for open to return)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bonzini (Posted a comment)
  •  

    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 StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code