diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 82ddad46d..d293ff2c0 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -2887,7 +2887,7 @@ setdtablesize (int size) extern "C" int getdtablesize () { - return cygheap->fdtab.size; + return OPEN_MAX_MAX; } extern "C" int