Re: BUG in sys_socketpair

2007-10-29 Thread David Miller
From: Chuck Ebbert <[EMAIL PROTECTED]> Date: Thu, 25 Oct 2007 14:44:52 -0400 > On 10/25/2007 10:11 AM, Rich Paul wrote: > > In 2.6.23, there seems to be a minor bug in sys_socketpair. When the > > calls to sock_alloc_fd fail, it aborts the routine, but it returns the >

Re: BUG in sys_socketpair

2007-10-25 Thread Chuck Ebbert
On 10/25/2007 10:11 AM, Rich Paul wrote: > In 2.6.23, there seems to be a minor bug in sys_socketpair. When the > calls to sock_alloc_fd fail, it aborts the routine, but it returns the > variable err, which is not set in this case. > > The result is a silent failure if you have

BUG in sys_socketpair

2007-10-25 Thread Rich Paul
In 2.6.23, there seems to be a minor bug in sys_socketpair. When the calls to sock_alloc_fd fail, it aborts the routine, but it returns the variable err, which is not set in this case. The result is a silent failure if you have too many files open and call socketpair. Here is a simple UNTESTED