O_RDONLY open on FIFO blocks until writer opens

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@781 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-07-26 14:24:17 +00:00
parent 759ba256e8
commit 28db0e083a
5 changed files with 36 additions and 3 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ static void *reader(pthread_addr_t pvarg)
if (nbytes > NREAD_BYTES)
{
fprintf(stderr, "reader: Too many bytes read -- aborting: %d\n", nbytes);
return (void*)3;
return (void*)4;
}
}
printf("reader: %d bytes read\n", nbytes);