public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/main] Cygwin: posix_getdents: do not clear attached DIR structure at fork(2)
@ 2024-03-01 14:44 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2024-03-01 14:44 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=e2ea60728cf9de3085cb5f19b899d3470f2399e5
commit e2ea60728cf9de3085cb5f19b899d3470f2399e5
Author: Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Fri Mar 1 15:31:57 2024 +0100
Commit: Corinna Vinschen <corinna@vinschen.de>
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 <corinna@vinschen.de>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-01 14:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-01 14:44 [newlib-cygwin/main] Cygwin: posix_getdents: do not clear attached DIR structure at fork(2) Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).