From owner-freebsd-current Wed Nov 29 01:28:05 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA24352 for current-outgoing; Wed, 29 Nov 1995 01:28:05 -0800 Received: from apollo.COSC.GOV (root@apollo.COSC.GOV [198.94.103.34]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id BAA24302 for ; Wed, 29 Nov 1995 01:28:01 -0800 Received: (from vince@localhost) by apollo.COSC.GOV (8.6.12/8.6.9) id BAA23960; Wed, 29 Nov 1995 01:23:36 -0800 Date: Wed, 29 Nov 1995 01:23:35 -0800 (PST) From: -Vince- To: Bakul Shah cc: "Jordan K. Hubbard" , Joerg Wunsch , FreeBSD-current users Subject: Re: select() and setrlimit() broken In-Reply-To: <199511281837.KAA12261@netcom22.netcom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@FreeBSD.ORG Precedence: bulk On Tue, 28 Nov 1995, Bakul Shah wrote: > > > Does anyone know if select() and setrlimit() is broken in -CURRENT sinc > > > they don't behave the way they should as compared to every other UN*X > > > variant. Any info would be helpful. Thanks! > > Don't know about setrlimit() but I did notice that rlim_max is 0 > under {Free,Net}BSD. On most other systems it is >= rlim_cur. > > -Vince- should describe exactly what the problem is if he > expects any help. I would but the author of Schrodinger chat was the one who found the problem since the program loads but just doesn't work the way it's supposed to as it did in 2.05R. Here's what he said: On SunOS 4.1.3, solaris, linux, ultrix, irix, ... my chatline program stayed at the line where select() was when nobody was logged on or when nobody was typing. It's acts in char mode telnet. On freebsd-current, it doesn't stay at select() when nobody is logged on or when nobody is typing. select line is something like select((fd_set *)readfds, (fd_set *)0, (fd_set *)0, (time_t *)0); the file descriptors for each socket is set for i/o non-blocking with fcntl() ... (can't remember the exact syntax offhand .. I'm on the fly right now) (it's something like that ... I don't do unix C programming any longer .. I'm quoting from memory ... I was forwarded this letter from somebody using my chatline code). btw, my chatline program worked "properly" on FreeBSD 2.0.5, 2.0 and previous versions 1.5.1.1 (or whatever version that novell doesn't want anybody using). Gord J.C. Cheers, -Vince- vince@COSC.GOV - GUS Mailing Lists Admin - http://www.COSC.GOV/~vince UC Berkeley AstroPhysics - Electrical Engineering (Honorary B.S.) Chabot Observatory & Science Center - Board of Advisors Running FreeBSD - Real UN*X for Free! Linda Wong/Vivian Chow/Hacken Lee/Danny Chan/Priscilla Chan Fan Club Mailing Lists Admin