Skip to content

Commit

Permalink
Cygwin: posix_getdents: do not clear attached DIR structure at fork(2)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
github-cygwin committed Mar 1, 2024
1 parent 6d93691 commit e2ea607
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion winsup/cygwin/fhandler/base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2ea607

Please sign in to comment.