diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-04-03 22:10:19 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-04-03 22:10:19 +0200 |
commit | 37606a6b2907202b33e893e018b18c13cee3941f (patch) | |
tree | 435f3396d3a9ab33564a9f8964284d9e0ada5e16 /sys/src/libthread/iocall.c | |
parent | 0989c2530d03de81c7d340e2f173786590ae967b (diff) |
libthread: make ioproc even when opening /proc/n/ctl fails (factotum)
Diffstat (limited to 'sys/src/libthread/iocall.c')
-rw-r--r-- | sys/src/libthread/iocall.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/libthread/iocall.c b/sys/src/libthread/iocall.c index 36c970806..94b2cced2 100644 --- a/sys/src/libthread/iocall.c +++ b/sys/src/libthread/iocall.c @@ -15,6 +15,8 @@ iocall(Ioproc *io, long (*op)(va_list*), ...) return -1; } while(recv(io->creply, nil) < 0){ + if(io->ctl < 0) + continue; if(canqlock(io)){ if(++io->intr == 1) write(io->ctl, "interrupt", 9); |