aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2024-03-01 15:31:57 +0100
committerCorinna Vinschen <corinna@vinschen.de>2024-03-01 15:32:39 +0100
commite2ea60728cf9de3085cb5f19b899d3470f2399e5 (patch)
treecd5259617338ab3ca97f8005e0d135c826d82c29
parent6d936915477ca8f64ecba31c9876103d69827fb2 (diff)
downloadnewlib-e2ea60728cf9de3085cb5f19b899d3470f2399e5.zip
newlib-e2ea60728cf9de3085cb5f19b899d3470f2399e5.tar.gz
newlib-e2ea60728cf9de3085cb5f19b899d3470f2399e5.tar.bz2
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 <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/fhandler/base.cc1
1 files changed, 0 insertions, 1 deletions
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