From owner-freebsd-hackers Tue Apr 20 19:22:21 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id 92777150D4 for ; Tue, 20 Apr 1999 19:22:16 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from lot.gsoft.com.au (lot.gsoft.com.au [203.38.152.106]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id LAA27088; Wed, 21 Apr 1999 11:49:22 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199904200921.LAA09941@cdsec.com> Date: Wed, 21 Apr 1999 11:57:00 +0930 (CST) From: "Daniel O'Connor" To: Graham Wheeler Subject: RE: Using select() to implement a delay Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 20-Apr-99 Graham Wheeler wrote: > I am using this both because it gives better resolution than sleep(), > and also because it doesn't require the use of SIGALRM, which I am > using elsewhere. What about usleep()? Although it can return EINTR too, so I suppose you only save about 2 lines of code :) --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message