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 Servers Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Standard Compliance
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Reproducibility:  Every Time
Size (loc):  None Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 

Add a New Comment(Rich 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 Files:
   
   
Comment:
   

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

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

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3