Mail Archives: cygwin-developers/1998/06/05/06:07:25
>Geoffrey Noer wrote:
>> On Thu, Jun 04, 1998 at 10:08:27AM +0400, Sergey Okhapkin wrote:
>> [...]
>> > It's not possible to wait more than 63 childs, because of
>> > WaitForMultipleObjects() call limitation (the maximum number of handles
>to
>> > wait is 64). I think fork() call should fail when nchildren >= 63.
>Also,
>> > sysconf(_SC_CHILD_MAX) should return 63.
>>
>> Hmmm... _SC_CHILD_MAX is "the number of simultaneous processes per
>> read user ID." Isn't it more than we don't a parent process to have
>> more than 63 children?
>>
>
>I'll look into PCTS sources - it checks some value and reports an error
>when is able to fork more than this number of processes on cygwin :-)
>Probably, it checks _POSIX_CHILD_MAX defined in <limits.h>.
I will make some changes to fork/spawn to return errors and set errno
when the process limit is reached. If someone can tell me what constant
I should be using/reporting I'll fix that too.
cgf
- Raw text -