Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 97 22:38:23 CDT
From:      "Daniel M. Eischen" <deischen@iworks.InterWorks.org>
To:        grog@lemis.com (Greg Lehey)
Cc:        ron@dc.infi.net, freebsd-questions@FreeBSD.ORG
Subject:   Re: Warning: Select failed; error code 22
Message-ID:  <199708230338.WAA18023@iworks.InterWorks.org>
In-Reply-To: <19970823103739.45226@lemis.com>; from "Greg Lehey" at Aug 23, 97 10:37 am

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

     An error return from select() indicates:

     [EBADF]       One of the descriptor sets specified an invalid descriptor.

     [EINTR]       A signal was delivered before the time limit expired and

                   before any of the selected events occurred.

     [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.

> 
> > I've never seen this under FreeBSD.
> 
> I've frequently seen it under FreeBSD.
> 
> Greg
> 

Dan Eischen
deischen@iworks.InterWorks.org



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