summaryrefslogtreecommitdiff
path: root/nuttx/examples/pipe
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-07-26 14:24:17 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-07-26 14:24:17 +0000
commit9c61d1e4e2d425c03af542f2ff40e7b00575b582 (patch)
tree0304edd450687379182331d0e1ae52347c4134c0 /nuttx/examples/pipe
parent3ebe09f0ac8d3be70fda8df613db3c6c9f695db4 (diff)
downloadpx4-nuttx-9c61d1e4e2d425c03af542f2ff40e7b00575b582.tar.gz
px4-nuttx-9c61d1e4e2d425c03af542f2ff40e7b00575b582.tar.bz2
px4-nuttx-9c61d1e4e2d425c03af542f2ff40e7b00575b582.zip
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
Diffstat (limited to 'nuttx/examples/pipe')
-rw-r--r--nuttx/examples/pipe/pipe_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/examples/pipe/pipe_main.c b/nuttx/examples/pipe/pipe_main.c
index 5b3874171..eadad0562 100644
--- a/nuttx/examples/pipe/pipe_main.c
+++ b/nuttx/examples/pipe/pipe_main.c
@@ -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);