This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This change makes _SC_ARG_MAX variable over the life of the program, simialr to _SC_OPEN_MAX (after a call to setrlimit with RLIMIT_NOFILE). The standard will need to be changed, as it was changed for _SC_OPEN_MAX, to say "...may return different values before and after a call to..."
I don't think this is true. Please read the text that I wrote for the man page. The limit is determined by the RLIMIT_STACK value that is in force **at the time of the execve()**. Thereafter, it is invariant.
New behaviour: - There may not be enough room to pass those parameters?
What happens if you have less than 512 kB of RLIMIT_STACK? A quarter of that RLIMIT_STACK could be less than ARG_MAX. I would think it a kernel bug if it doesn't honour providing ARG_MAX space.
POSIX.1 says ARG_MAX must only be at least 4096. That's all the kernel must honour. I haven't actually checked whether it does honour that though.
IMO these are kernel bugs in 2.6.23. Filed. http://bugzilla.kernel.org/show_bug.cgi?id=10095
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |