diff options
author | rsc <devnull@localhost> | 2005-01-07 18:03:36 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-07 18:03:36 +0000 |
commit | a19ff5b204a5e36ae522feb4acc0f31542b95f38 (patch) | |
tree | 9f03f972fe7615d0c763fb680a0a837e4f625729 /src/lib9 | |
parent | b80755cf2d7bfaed4c8120cbd9b874f799e65644 (diff) | |
download | plan9port-a19ff5b204a5e36ae522feb4acc0f31542b95f38.tar.gz plan9port-a19ff5b204a5e36ae522feb4acc0f31542b95f38.tar.bz2 plan9port-a19ff5b204a5e36ae522feb4acc0f31542b95f38.zip |
debugging for sam, and an old fix forgotten
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/open.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib9/open.c b/src/lib9/open.c index 896ca528..e76aabe3 100644 --- a/src/lib9/open.c +++ b/src/lib9/open.c @@ -28,6 +28,10 @@ p9open(char *name, int mode) umode |= O_DIRECT; mode ^= ODIRECT; } + if(mode&ONONBLOCK){ + umode |= O_NONBLOCK; + mode ^= ONONBLOCK; + } if(mode){ werrstr("mode 0x%x not supported", mode); return -1; |