Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2008 13:22:45 -0600
From:      "Rick C. Petty" <rick-freebsd@kiwi-computer.com>
To:        Metin KAYA <metin@EnderUNIX.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: select
Message-ID:  <20080103192245.GB90170@keira.kiwi-computer.com>
In-Reply-To: <1571995824.20080103205248@EnderUNIX.org>
References:  <1571995824.20080103205248@EnderUNIX.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080103192245.GB90170>