diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-07-19 23:49:26 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-07-23 19:51:03 +0900 |
commit | 1f836c5f7394ccde8b2f502d632ac8e07835586d (patch) | |
tree | a5c8310f0d310cda349736e72e89d6c953faec18 /newlib/libc/stdio/vasniprintf.c | |
parent | 9b667234bfa6220dcca1afa1233a928d9100cfde (diff) | |
download | newlib-1f836c5f7394ccde8b2f502d632ac8e07835586d.zip newlib-1f836c5f7394ccde8b2f502d632ac8e07835586d.tar.gz newlib-1f836c5f7394ccde8b2f502d632ac8e07835586d.tar.bz2 |
Cygwin: spawn: Make system() thread-safe
POSIX states system() shall be thread-safe, however, it is not in
current cygwin. This is because ch_spawn is a global and is shared
between threads. With this patch, system() uses ch_spawn_local
instead which is local variable. popen() has the same problem, so
it has been fixed in the same way.
Addresses: https://cygwin.com/pipermail/cygwin/2025-June/258324.html
Fixes: 1fd5e000ace5 ("import winsup-2000-02-17 snapshot")
Reported-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diffstat (limited to 'newlib/libc/stdio/vasniprintf.c')
0 files changed, 0 insertions, 0 deletions