From e2ea60728cf9de3085cb5f19b899d3470f2399e5 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 1 Mar 2024 15:31:57 +0100 Subject: 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 --- winsup/cygwin/fhandler/base.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'winsup') diff --git a/winsup/cygwin/fhandler/base.cc b/winsup/cygwin/fhandler/base.cc index 6432367..e5e9f23 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 -- cgit v1.1