Subject: Re: kern/29600: cbb(4) hangs on boot
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: FUKAUMI Naoki <fun@naobsd.org>
List: netbsd-bugs
Date: 03/12/2005 10:27:01
The following reply was made to PR kern/29600; it has been noted by GNATS.
From: FUKAUMI Naoki <fun@naobsd.org>
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Cc: gnats-bugs@netbsd.org
Subject: Re: kern/29600: cbb(4) hangs on boot
Date: Sat, 12 Mar 2005 19:27:03 +0900
At Sat, 12 Mar 2005 18:51:02 +0900,
YAMAMOTO Takashi wrote:
> > Is it possible to awake tsleep($sc->sc_pwrcycle) by another place?
> > (i.e. except wakeup(&sc->sc_pwrcycle))
>
> yes. theoretically others can use the same wakeup ident coincidently.
Oh, I see. then
while (condition) {
error = tsleep(); /* set timeout value */
if (error = EWOULDBLOCK) /* timeout */
break;
}
is better.
--
FUKAUMI Naoki