From owner-freebsd-hackers Sun May 30 23:58:49 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 09C5314CFE for ; Sun, 30 May 1999 23:58:47 -0700 (PDT) (envelope-from julian@whistle.com) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with SMTP id XAA49749; Sun, 30 May 1999 23:58:36 -0700 (PDT) Date: Sun, 30 May 1999 23:58:35 -0700 (PDT) From: Julian Elischer Reply-To: Julian Elischer To: John Birrell Cc: hackers@freebsd.org Subject: (Solved)Re: sio driver and select puzzle. In-Reply-To: <199905310705.RAA29652@cimlogic.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ah yes, I knew that :-) just testing you (cough) You would't believe the time I wasted on this today. On Mon, 31 May 1999, John Birrell wrote: > Julian Elischer wrote: > > write(filedes, linebuf2, strlen(linebuf2)); > > sel_nfds = 0; > > FD_ZERO(&read_set); > > FD_SET( filedes, &read_set); > > if (filedes > sel_nfds) > > sel_nfds = filedes; > > sel_nfds = filedes + 1; > > -- > John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ > CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message