Re: [PATCH] compat: Add another rudimentary poll() emulation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Erik Faye-Lund
Date: Thursday, May 27, 2010 - 5:57 am

On Thu, May 27, 2010 at 2:36 PM, Marko Kreen <markokr@gmail.com> wrote:

Perhaps getrlimit() could overridden to return FD_SETSIZE for both the
soft and hard limit when asking about RLIMIT_NOFILE? In such cases,
anyone who passes nfds above FD_SETSIZE hasn't consulted
RLIMIT_NOFILE, and should be outside the standard. But your point
might have been about a limitless poll()-implementation, like the code
you linked tried to achieve. In that context, no. I doubt it's
possible to do in a robust fashion.

For git, I don't think this is necessary, though. As said, I think
git-daemon is the only call-site for poll where nfds can be above 2.
And git-daemon's default max-connection is 32, which shouldn't cause
much problems. There's the theoretical problem of someone setting
--max-connections above their platform's limit, but I don't think we
need to touch that ;)


No, I don't have much low-level file-descriptor knowledge about other
OS'es than Windows, really.

-- 
Erik "kusma" Faye-Lund
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] Interix support, Jonathan Callen, (Thu May 27, 1:19 am)
[PATCH 1/3] Support building on systems without poll(2), Jonathan Callen, (Thu May 27, 1:19 am)
[PATCH 2/3] Support building without inttypes.h, Jonathan Callen, (Thu May 27, 1:19 am)
[PATCH 3/3] Add Interix support, Jonathan Callen, (Thu May 27, 1:19 am)
Re: [PATCH 1/3] Support building on systems without poll(2), Sverre Rabbelier, (Thu May 27, 1:43 am)
Re: [PATCH 1/3] Support building on systems without poll(2), Michael J Gruber, (Thu May 27, 1:51 am)
Re: [PATCH 1/3] Support building on systems without poll(2), Jonathan Callen, (Thu May 27, 2:13 am)
[PATCH] compat: Add another rudimentary poll() emulation, Jonathan Nieder, (Thu May 27, 3:10 am)
Re: [PATCH] compat: Add another rudimentary poll() emulation, Erik Faye-Lund, (Thu May 27, 5:57 am)
RE: [PATCH] compat: Add another rudimentary poll() emulation, Peter Kjellerstedt, (Thu May 27, 8:17 am)
Re: [PATCH 0/3] Interix support, Jakub Narebski, (Thu May 27, 7:11 pm)
[PATCH v2] compat: Add another rudimentary poll() emulation, Jonathan Nieder, (Sat May 29, 5:37 pm)
Mac OS 9 (Lamp) port, Jonathan Nieder, (Sun May 30, 8:19 pm)
Re: Mac OS 9 (Lamp) port, Joshua Juran, (Sun May 30, 9:35 pm)
Re: Mac OS 9 (Lamp) port, Jonathan Nieder, (Sun May 30, 10:49 pm)