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

Submitted by:  None
Submitted on:  Fri 04 Feb 2011 03:39:18 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned 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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Feb 2011 08:36:17 AM UTCbonziniStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1