]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: fix a race in the FAST_CWD fallback code
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 10 Jul 2018 12:13:15 +0000 (14:13 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 10 Jul 2018 12:13:15 +0000 (14:13 +0200)
commit698d93c4b4edb442ca6ebae13c29e2d14feb047e
treea79740a173fc70e0ba11043bd17f249e03071bc5
parent3a6833e3c4658a03b19d4fa820094b983e37500c
Cygwin: fix a race in the FAST_CWD fallback code

Guard the entire operation with the FastPebLock critical section
used by RtlSetCurrentDirectory_U as well, thus eliminating the
race between concurrent chdir/fchdir/SetCurrentDirectory calls.

Streamline comment explaining the fallback method.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/path.cc
This page took 0.030085 seconds and 5 git commands to generate.