From owner-freebsd-questions Sun Aug 24 19:54:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA10377 for questions-outgoing; Sun, 24 Aug 1997 19:54:15 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id TAA10371 for ; Sun, 24 Aug 1997 19:54:12 -0700 (PDT) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id MAA12457; Mon, 25 Aug 1997 12:53:37 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id MAA13830; Mon, 25 Aug 1997 12:23:36 +0930 (CST) Message-ID: <19970825122335.38361@lemis.com> Date: Mon, 25 Aug 1997 12:23:35 +0930 From: Greg Lehey To: "Daniel M. Eischen" Cc: FreeBSD Questions Subject: Re: Warning: Select failed; error code 22 References: <19970823103739.45226@lemis.com> <199708230338.WAA18023@iworks.InterWorks.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199708230338.WAA18023@iworks.InterWorks.org>; from Daniel M. Eischen on Fri, Aug 22, 1997 at 10:38:23PM -0600 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Fri, Aug 22, 1997 at 10:38:23PM -0600, Daniel M. Eischen wrote: >> >> On Fri, Aug 22, 1997 at 01:19:18PM -0400, Ron Steele wrote: >>> Daniel M. Eischen wrote: >>>> >>>>> I'm having trouble with certain X-programs. I can start the program, for >>>>> example xemacs, and run it for a few seconds, then it hangs and the >>>>> terminal I started it from is full with lines of "Warning: Select failed; >>>>> error code 22". I have to kill them. >>>>> This is *very annoying*. > > [...] > >>> And I have seen the same thing under HP-UX versions 9.xx and 10.xx. >>> It only happened, or at least was ony apparent while running xemacs. >>> With a different version of xemacs the problem went away. >> >> Error 22 is EINVAL, "Invalid argument", which covers a multitude of >> sins. Don't expect *any* connection when it's reported in different >> scenarios. > > Yes, but if the message is correct and is generated by select(), > then wouldn't the error code give us a clue: > > ... > > [EINVAL] The specified time limit is invalid. One of its components > is negative or too large. > > [EINVAL] nfds was invalid. > > Either the time is invalid or the number of file descriptors is invalid. > Could the new login.conf (openfiles?) have anything to do with this? > We don't know what version of FreeBSD he's running, though. Sorry, I've lost the context of this one. My answer was intended to point out that you can't just say, "Me, too, I've had an error 22". Greg