diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-07-24 03:23:01 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-07-24 03:23:01 +0200 |
commit | 8173223f439546685f0cc4471efc9a9d12fccf4c (patch) | |
tree | 5eacca34ab80fdc3d658cd38df7171663a5ae9eb /sys/src/9/port/devcons.c | |
parent | a0d4c5e208405f84076891faaa43235bb2b87fc2 (diff) |
swap: make sure swap chan has ORDWR mode on fdtochan()
Diffstat (limited to 'sys/src/9/port/devcons.c')
-rw-r--r-- | sys/src/9/port/devcons.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/devcons.c b/sys/src/9/port/devcons.c index 808683451..b09df91f2 100644 --- a/sys/src/9/port/devcons.c +++ b/sys/src/9/port/devcons.c @@ -795,7 +795,7 @@ conswrite(Chan *c, void *va, long n, vlong off) if(buf[0]<'0' || '9'<buf[0]) error(Ebadarg); fd = strtoul(buf, 0, 0); - swc = fdtochan(fd, -1, 1, 1); + swc = fdtochan(fd, ORDWR, 1, 1); setswapchan(swc); break; |