diff options
author | Clint Adams <clint@users.sourceforge.net> | 2000-08-08 14:57:02 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2000-08-08 14:57:02 +0000 |
commit | cb89544d32619822541153118b0bc9c936573c64 (patch) | |
tree | dbab588ad5cff4f9e801a9b9804e0dfc12a2bac5 /Src/init.c | |
parent | 3bca186819e7e1e0fc6321592ccc62d75e0525be (diff) | |
download | zsh-cb89544d32619822541153118b0bc9c936573c64.tar.gz zsh-cb89544d32619822541153118b0bc9c936573c64.tar.xz zsh-cb89544d32619822541153118b0bc9c936573c64.zip |
12568: check sysconf(_SC_OPEN_MAX) if available instead of OPEN_MAX/NOFILES.
Diffstat (limited to 'Src/init.c')
-rw-r--r-- | Src/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/init.c b/Src/init.c index 131cc855c..e3e8f734e 100644 --- a/Src/init.c +++ b/Src/init.c @@ -1173,7 +1173,7 @@ zsh_main(int argc, char **argv) break; } while (zsh_name); - fdtable_size = OPEN_MAX; + fdtable_size = zopenmax(); fdtable = zcalloc(fdtable_size); createoptiontable(); |