kernel: cannot interrupt segmentio commands

once we submit a command to segmentio process, we have to wait
for it to complete even if we got interrupted.
This commit is contained in:
cinap_lenrek 2015-04-16 16:07:36 +02:00
parent 39cf6b34e3
commit ef647a54c0

View file

@ -799,8 +799,11 @@ docmd(Segio *sio, int cmd)
{
sio->err = nil;
sio->cmd = cmd;
while(waserror())
;
wakeup(&sio->cmdwait);
sleep(&sio->replywait, cmddone, sio);
poperror();
if(sio->err != nil)
error(sio->err);
}