diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-26 23:30:17 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-26 23:30:17 +0000 |
commit | ec4bcbd01f73873a97a7d089e2f2de260db243d5 (patch) | |
tree | 47475764be4ec3b20caf7941ea52ca4b49e63f8a /sys/src/cmd/rio/rio.c | |
parent | 269e63406d8d9fe79351849ca5c225f7dd3024d1 (diff) |
rio: disable cons if /dev/kbd is open, add games/doom
Diffstat (limited to 'sys/src/cmd/rio/rio.c')
-rw-r--r-- | sys/src/cmd/rio/rio.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c index b962631a4..1550213ef 100644 --- a/sys/src/cmd/rio/rio.c +++ b/sys/src/cmd/rio/rio.c @@ -1212,11 +1212,8 @@ kbdproc(void *arg) } fprint(cfd, "rawon"); - if(sendp(c, nil) <= 0){ - close(cfd); - close(fd); + if(sendp(c, nil) <= 0) return; - } if((kfd = open("/dev/kbd", OREAD)) >= 0){ close(fd); @@ -1246,9 +1243,7 @@ kbdproc(void *arg) memmove(buf, p, n); p = buf + n; } - close(fd); } - close(cfd); } Channel* |