bugThe GNU Hurd - Bugs: bug #41907, Opening pipes RW with bash is...

 
 

bug #41907: Opening pipes RW with bash is blocking

Submitted by:  Victor Berger <levans>
Submitted on:  Wed 19 Mar 2014 03:32:22 PM UTC  
 
Category: Hurd ServersSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Standard Compliance
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenReproducibility: Every Time
Size (loc): NonePlanned Release: None
Effort: 0.00
Wiki-like text discussion box: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 20 Mar 2014 01:37:29 AM UTC, comment #1:

I guess nobody thought about that case, and it's probably just bugged.

Samuel Thibault <sthibaul>
Project Member
Wed 19 Mar 2014 03:32:22 PM UTC, original submission:

In a bash shell, creating a fifo and opening it as a file descriptor for both reading and writing like this :

mkfifo foo
exec 11<>foo

Hangs forever, and killing the call with ^C writes a "broken pipe" error.

On a Linux system, running something like

mkfifo foo
exec 11<>foo
echo "bar" >&11
cat <&11

works as expected, but this does not seem to be specified by POSIX (opening a pipe for both read and write is undefined behaviour).

Is making this call blocking a Hurd choice, or a bug ?

Victor Berger <levans>

 

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

Attach File(s):
   
   
Comment:
   

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 sthibaul (Posted a comment)
  • -unavailable- added by levans (Submitted the item)
  •  

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

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup