summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/port/sysfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/port/sysfile.c b/os/port/sysfile.c
index 1ff0fe5f..702470b6 100644
--- a/os/port/sysfile.c
+++ b/os/port/sysfile.c
@@ -1113,7 +1113,7 @@ kiounit(int fd)
Chan *c;
int n;
- c = fdtochan(up->env->fgrp, fd, ORDWR, 0, 1);
+ c = fdtochan(up->env->fgrp, fd, -1, 0, 1);
if(waserror()){
cclose(c);
return 0; /* n.b. */