Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    The question is: "what would do A when B closes its side of the pipe?" Commented Jan 25, 2012 at 14:22
  • 2
    Wouldn't that be a 'broken pipe'? Commented Jan 25, 2012 at 14:29
  • 1
    If a program tries to read/write from/to a closed pipe (e.g. head exits), a SIGPIPE signal occurs in the program and the default behavior is to exit. Commented Jan 25, 2012 at 14:35
  • How exactly does this answer the question? It seems psusi's answer is shorter and more to the point. Commented Jan 25, 2012 at 20:00