What the reader can expect after the reader closed - Unix

This is a discussion on What the reader can expect after the reader closed - Unix ; Hi, If process A use a pipe to read something which is write by process B, but A's reading is later than B's writing and closing. What will happended when A try to read? The same question applies on the ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: What the reader can expect after the reader closed

  1. What the reader can expect after the reader closed

    Hi,

    If process A use a pipe to read something which is write by process B,
    but A's reading is later than B's writing and closing. What will
    happended when A try to read? The same question applies on the case
    of unix domain socket.

    Thanks.

    -
    woody

  2. Re: What the reader can expect after the reader closed

    Steven Woody writes:

    > Hi,
    >
    > If process A use a pipe to read something which is write by process B,
    > but A's reading is later than B's writing and closing. What will
    > happended when A try to read? The same question applies on the case
    > of unix domain socket.


    The reading process will read everything that was written.

    --
    Måns Rullgård
    mans@mansr.com

  3. Re: What the reader can expect after the reader closed

    On May 26, 8:40 am, Måns Rullgård wrote:
    > Steven Woody writes:
    > > Hi,

    >
    > > If process A use a pipe to read something which is write by process B,
    > > but A's reading is later than B's writing and closing. What will
    > > happended when A try to read? The same question applies on the case
    > > of unix domain socket.

    >
    > The reading process will read everything that was written.
    >
    > --
    > Måns Rullgård
    > m...@mansr.com


    Good! Thank you.

+ Reply to Thread