> >I'm making a mechanism for reading/writing to a named pipe using low level function FOPEN, FWRITE and FREAD. It worked fine, but FREAD function makes the program to freeze when nothing comes from the named pipe. I could do nothing to stop the reading process. The system gets crashed or I have to force something to be sent. Do you know how can I set a timeout or interrupt the FREAD process?