https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=e2ea60728cf9de3085cb5f19b899d3470f2399e5
commit e2ea60728cf9de3085cb5f19b899d3470f2399e5 Author: Corinna Vinschen <[email protected]> AuthorDate: Fri Mar 1 15:31:57 2024 +0100 Commit: Corinna Vinschen <[email protected]> CommitDate: Fri Mar 1 15:32:39 2024 +0100 Cygwin: posix_getdents: do not clear attached DIR structure at fork(2) The upcoming POSIX issue 8 will require that posix_getdents after fork() will pick up at the right spot, independently of being called in the parent or in the child process. Remove the expression clearing out the attached DIR after fork. Signed-off-by: Corinna Vinschen <[email protected]> Diff: --- winsup/cygwin/fhandler/base.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/winsup/cygwin/fhandler/base.cc b/winsup/cygwin/fhandler/base.cc index 643236751ab1..e5e9f2325fce 100644 --- a/winsup/cygwin/fhandler/base.cc +++ b/winsup/cygwin/fhandler/base.cc @@ -1636,7 +1636,6 @@ fhandler_base::fixup_after_fork (HANDLE parent) /* POSIX locks are not inherited across fork. */ if (unique_id) del_my_locks (after_fork); - clear_getdents (); } void
