diff options
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; |