Fixed erroneous return values from read(2)/write(2) on pipe endpoints
Fixed erroneous behaviour in read(2) on pipes causing EPIPE/SIGPIPE to be generated