From mboxrd@z Thu Jan 1 00:00:00 1970 References: In-Reply-To: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Message-Id: <2A9FAAF6-97E1-45A6-BF54-609130B99FA3@bitblocks.com> Content-Transfer-Encoding: quoted-printable From: Bakul Shah Date: Thu, 23 Aug 2012 08:39:02 -0700 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] devmnt crash, fix. Topicbox-Message-UUID: aed13948-ead7-11e9-9d60-3106f5b1d025 On Aug 23, 2012, at 6:27 AM, erik quanstrom wrote: > any time you use sleep/wakeup, you're going to have to deal with > spurious wakeups. it does not matter which rendezvous structure > you use. it doesn't matter if it's shared or not. it's perfectly valid > for sleep to return for no reason at all! Indeed. One way to catch sleep() errors is to change wakeup() to wake *ever= yone* up.=