From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 3 19:49:26 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 E801716A419 for ; Thu, 3 Jan 2008 19:49:26 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id 775D313C459 for ; Thu, 3 Jan 2008 19:49:26 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 90249 invoked by uid 2001); 3 Jan 2008 19:22:45 -0000 Date: Thu, 3 Jan 2008 13:22:45 -0600 From: "Rick C. Petty" To: Metin KAYA Message-ID: <20080103192245.GB90170@keira.kiwi-computer.com> References: <1571995824.20080103205248@EnderUNIX.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1571995824.20080103205248@EnderUNIX.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: select X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2008 19:49:27 -0000 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. -- Rick C. Petty