Hi,

is calling write(fd[1], NULL, 0) a good way to check if a pipe's 
reading end is still not closed without writing any data to it? 
Or should I better use poll() or anything else for that?

I have tried it and it seems to work (returns -1 and EPIPE 
if the reading end is closed), but I've decided to ask here, 
because I couldn't find any examples doing that in /usr/src.

Also, where is _thread_sys_write defined please? Can't find it

Thank you
Alex

Reply via email to