From owner-freebsd-hackers Mon Feb 6 11:24:25 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id LAA18258 for hackers-outgoing; Mon, 6 Feb 1995 11:24:25 -0800 Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id LAA18235 for ; Mon, 6 Feb 1995 11:23:22 -0800 Received: by halloran-eldar.lcs.mit.edu; id AA26887; Mon, 6 Feb 1995 14:20:07 -0500 Date: Mon, 6 Feb 1995 14:20:07 -0500 From: Garrett Wollman Message-Id: <9502061920.AA26887@halloran-eldar.lcs.mit.edu> To: Peter Dufault Cc: tinguely@plains.nodak.edu (Mark Tinguely), hackers@FreeBSD.org Subject: Re: longjump in kernel In-Reply-To: <199502041119.GAA26711@hda.com> References: <199502040224.AA13601@plains.NoDak.edu> <199502041119.GAA26711@hda.com> Sender: hackers-owner@FreeBSD.org Precedence: bulk < said: > To set an alarm: > -Use "sleep" to wait for the interrupt while in the user process context; Don't use sleep, ever. Use tsleep. > -Use "timeout" to set a timeout function that will wakeup the context with > an error indication set in the event of loss of interrupt. Return > an error code to the user process; And use the timeout option to tsleep. > -Use "untimeout" to cancel the timeout if the interrupt comes in > on time. And this is unnecessary. -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant