Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 1997 12:23:35 +0930
From:      Greg Lehey <grog@lemis.com>
To:        "Daniel M. Eischen" <deischen@iworks.InterWorks.org>
Cc:        FreeBSD Questions <questions@FreeBSD.org>
Subject:   Re: Warning: Select failed; error code 22
Message-ID:  <19970825122335.38361@lemis.com>
In-Reply-To: <199708230338.WAA18023@iworks.InterWorks.org>; from Daniel M. Eischen on Fri, Aug 22, 1997 at 10:38:23PM -0600
References:  <19970823103739.45226@lemis.com> <199708230338.WAA18023@iworks.InterWorks.org>

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



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