mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-01 06:12:31 +00:00
Remove getdtablesize calls in favor of sysconf(_SC_OPEN_MAX). (#45)
`getdtablesize()` has long been deprecated in favor of `sysconf(_SC_OPEN_MAX)`.
This commit is contained in:
@@ -277,11 +277,7 @@ int FindUnixPipes(void) {
|
||||
if ((envtmp = getenv("LDEUNIXPID"))) UnixPID = atoi(envtmp);
|
||||
|
||||
/* This is a good place to initialize stuff like the UJ table */
|
||||
#ifdef SYSVONLY
|
||||
NPROCS = sysconf(_SC_OPEN_MAX);
|
||||
#else
|
||||
NPROCS = getdtablesize();
|
||||
#endif /* SYSVONLY */
|
||||
|
||||
UJ = (struct unixjob *)malloc(NPROCS * sizeof(struct unixjob));
|
||||
cleareduj.status = -1;
|
||||
|
||||
Reference in New Issue
Block a user