From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 4 20:57:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E6B116A4E5 for ; Fri, 4 Jan 2008 20:57:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C0D3413C46A for ; Fri, 4 Jan 2008 20:57:22 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.14.1) with ESMTP id m04KroRf026858; Fri, 4 Jan 2008 13:53:53 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 04 Jan 2008 13:54:21 -0700 (MST) Message-Id: <20080104.135421.96120312.imp@bsdimp.com> To: metin@EnderUNIX.org From: "M. Warner Losh" In-Reply-To: <363446479.20080103213223@EnderUNIX.org> References: <1571995824.20080103205248@EnderUNIX.org> <20080103192245.GB90170@keira.kiwi-computer.com> <363446479.20080103213223@EnderUNIX.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, rick-freebsd@kiwi-computer.com Subject: Re: select X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 20:57:23 -0000 In message: <363446479.20080103213223@EnderUNIX.org> Metin KAYA writes: : Yes Rick, I'm asking this "indefinitely" issue. Is there anything : that handle this NULL situation a signal, or etc.? How does Linux or : FreeBSD behave? : : > On Thu, Jan 03, 2008 at 08:52:48PM +0200, Metin KAYA wrote: : >> : >> How select(2) will behave if I give the "utimeout" parameter as : >> NULL? : : > According to the man page: : : > If timeout is not a null pointer, it specifies the maximum interval to : > wait for the selection to complete. System activity can lengthen the : > interval by an indeterminate amount. : : > If timeout is a null pointer, the select blocks indefinitely. : : > To effect a poll, the timeout argument should not be a null pointer, but : > it should point to a zero-valued timeval structure. : Indefinitely means "it won't return until there's an error or data" Warner