C child read giving "resource temporarily unavailable"

Posted by Gary on Stack Overflow See other posts from Stack Overflow or by Gary
Published on 2010-05-05T02:18:35Z Indexed on 2010/05/05 4:28 UTC
Read the original article Hit count: 232

Filed under:
|
|
|

So I have a file stream from a parent process to a child - and most of the time it works fine. However, when reading from it multiple times quickly, using fgets() will return NULL and the error is set to "resource temporarily unavailable". The problem is intermittent - and running the script that does the reads will sometimes have fgets return NULL and sometimes wont.

Could anyone help me stop this error from happening? Thanks!

© Stack Overflow or respective owner

Related posts about c

    Related posts about fgets