Hi Olaf,

On Tue, Nov 4, 2008 at 11:04 AM, Olaf van der Spek <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 4, 2008 at 4:59 PM, Michael Kerrisk
> <[EMAIL PROTECTED]> wrote:
>> Well, epoll_wait(2) is just going to behave as usual: it tells us that the
>> listening
>> socket fd is ready.  Then the accept() fails with EMFILE.
>>
>> I think the simplest thing here is to change the "continue;" in the error
>> handling after accept() to "exit(EXIT_FAILURE);", and that's what I've done
>> for man-pages-3.13.
>>
>> I also added error handling for the epoll_wait() call.
>
> I agree that it's the simplest way, but it's not the proper way.

I'm curious.  How would you ideally improve it?


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to