On 10/28/2010 12:03 PM, James Youngman wrote:
[snip]
> In so far as we're likely ever to fix this problem I'd be inclined to
> go for the 32K limit that Eric suggested.   And perhaps treating
> ENOMEM like E2BIG when execve fails, for Interix.

mhm - that'd be ok with me.

another solution that came to my mind: i'm maintaining a library, who's sole 
purpose is to fix the incorrect behaviour of libc in some regards on interix 
(libsuacomp [1]). it does some "bad" things already ( ;p ), so maybe i could 
override the sysconf() function (it already overrides approx 70 functions...), 
and make it return a sane value in the _SC_ARG_MAX case. that would make the 
whole problem disappear, and even the first (pushed) patch unnecessary.

what do you think?

[1] http://sf.net/projects/suacomp

markus

> 
> James.


Reply via email to