]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/port/usbehci.c
devproc: make sure /proc/n/wait waits for the right process children
[plan9front.git] / sys / src / 9 / port / usbehci.c
index 0cdffb750ec93f5f26a14e9eeb0b8f523d77a299..66546675cdd2a499fddb935a06116568c7e95b48 100644 (file)
@@ -2225,6 +2225,8 @@ ehcipoll(void* a)
        hp = a;
        ctlr = hp->aux;
        poll = &ctlr->poll;
+       while(waserror())
+               ;
        for(;;){
                if(ctlr->nreqs == 0){
                        if(0)ddprint("ehcipoll %#p sleep\n", ctlr->capio);