From owner-freebsd-hackers Sun Jun 13 9: 2:30 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 2D13114CA8 for ; Sun, 13 Jun 1999 09:02:27 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.1) id SAA28551; Sun, 13 Jun 1999 18:02:24 +0200 (CEST) (envelope-from des) To: Brian Feldman Cc: Dag-Erling Smorgrav , hackers@FreeBSD.ORG Subject: Re: select(2) breakage References: From: Dag-Erling Smorgrav Date: 13 Jun 1999 18:02:24 +0200 In-Reply-To: Brian Feldman's message of "Sun, 13 Jun 1999 11:59:55 -0400 (EDT)" Message-ID: Lines: 12 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Feldman writes: > On 13 Jun 1999, Dag-Erling Smorgrav wrote: > > BTW, you should check for errno == EINTR when select() returns -1. > The perror() is the status report for select() when -1. Yeah, but EINTR is a normal condition, so I'd ignore it silently instead of logging it. Of course, the purpose of this program is to demonstrate select() behaviour, so logging EINTR is valid. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message