I am reading data sent by the parent process using pipe. Parent process close the read end and write data on the write end of pipe. Similarly, child closes write end and read data from read end.
But in my case, read returned the "-1"
which is error value.
How should I find that, which error(like EAGAIN, EBADF, EIO
) has been occurred in read call?
Thanks