On Fri, Nov 01, 2002 at 03:16:58PM +0200, Jaco Greeff wrote:
+/* FIXME: Don't know what this value should be, 10 seems enough as
- the maximum number of simultaneous _popen'ed processes
- */ #define POPEN_MAX_FILES 10
...
+INT POPEN_getOpenFileSlotPos(VOID) +{
- INT i = 0;
- for (i = 0; i < POPEN_MAX_FILES; i++)
- {
if (!POPEN_Files[i].fProcess)
{
POPEN_Files[i].fProcess = (MSVCRT_FILE *)POPEN_FILE_IN_USE;
return i;
}
- }
Please output an ERR here to ask people to report that POPEN_MAX_FILES needs to be increased.
- return -1;