delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/06/03/23:36:20

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: error when maxing out processes
3 Jun 1998 23:36:20 -0700 :
Message-ID: <01BD8FA0.B83089D0.cygnus.cygwin32.developers@sos>
To: "cygwin32-developers AT cygnus DOT com" <cygwin32-developers AT cygnus DOT com>,
"'Tim Newsham'" <newsham AT lava DOT net>

Tim Newsham wrote:
>      I notice an internal cygwin error being displayed when I max
> out the process table.  The error:
>
>     wait_subproc: wait failed.  nchildren 64, wait -1, err 87
>

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.

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019