diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-11-22 22:29:31 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-11-22 22:29:31 +0100 |
commit | 55d31f2cab0101dfbdeb2857e2fce2629080cf02 (patch) | |
tree | 90a653927ee803495d55ca049e45157cb0bf5339 /sys/src/9/pc/sdiahci.c | |
parent | df6b68092cf2806d7c517e15d2db57b0b19a9788 (diff) |
pc kernel: kproc error and exit
catch the error() that can be thrown by sleep() and tsleep()
in kprocs.
add missing pexit() calls.
always set the freemem argument to pexit() from kproc otherwise
the process gets added to the broken list.
Diffstat (limited to 'sys/src/9/pc/sdiahci.c')
-rw-r--r-- | sys/src/9/pc/sdiahci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/pc/sdiahci.c b/sys/src/9/pc/sdiahci.c index 4a70c50ae..0c157d7a9 100644 --- a/sys/src/9/pc/sdiahci.c +++ b/sys/src/9/pc/sdiahci.c @@ -1177,6 +1177,8 @@ satakproc(void*) { int i; + while(waserror()) + ; for(;;){ tsleep(&up->sleep, return0, 0, Nms); for(i = 0; i < niadrive; i++) |