Date: Wed, 10 Apr 1996 14:13:02 +0930 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: marc@bowtie.nl (Marc van Kempen) Cc: questions@FreeBSD.org Subject: Re: select question Message-ID: <199604100443.OAA20796@genesis.atrad.adelaide.edu.au> In-Reply-To: <199604092143.XAA11392@nietzsche.bowtie.nl> from "Marc van Kempen" at Apr 9, 96 11:43:53 pm
next in thread | previous in thread | raw e-mail | index | archive | help
Marc van Kempen stands accused of saying:
> 
>   tm.tv_sec = 0;
>   tm.tv_usec = timeout;         /* timeout to wait for reply */
>   FD_ZERO(&readfds);            /* clear the read filedescriptor set */
>   FD_SET(_comfd, &readfds);     /* select the _comfd to wait for */
>   if (select(1, &readfds, NULL, NULL, &tm)) {
The '1' should be _comfd+1.
> Are there any settings of the filedescriptor that will influence
> the select behaviour? Or am I overlooking something else?
Hmm.  The manpage, perhaps. 8)
> Marc van Kempen                 BowTie Technology     
-- 
]] Mike Smith, Software Engineer        msmith@atrad.adelaide.edu.au    [[
]] Genesis Software                     genesis@atrad.adelaide.edu.au   [[
]] High-speed data acquisition and      (GSM mobile) 0411-222-496       [[
]] realtime instrument control          (ph/fax)  +61-8-267-3039        [[
]] Collector of old Unix hardware.      "Where are your PEZ?" The Tick  [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604100443.OAA20796>
