commit | a19ff5b204a5e36ae522feb4acc0f31542b95f38 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Fri Jan 07 18:03:36 2005 +0000 |
committer | rsc <devnull@localhost> | Fri Jan 07 18:03:36 2005 +0000 |
tree | 9f03f972fe7615d0c763fb680a0a837e4f625729 | |
parent | b80755cf2d7bfaed4c8120cbd9b874f799e65644 [diff] [blame] |
debugging for sam, and an old fix forgotten
diff --git a/src/lib9/open.c b/src/lib9/open.c index 896ca52..e76aabe 100644 --- a/src/lib9/open.c +++ b/src/lib9/open.c
@@ -28,6 +28,10 @@ umode |= O_DIRECT; mode ^= ODIRECT; } + if(mode&ONONBLOCK){ + umode |= O_NONBLOCK; + mode ^= ONONBLOCK; + } if(mode){ werrstr("mode 0x%x not supported", mode); return -1;