summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/wcstombs.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-12-03 12:38:19 +0100
committerCorinna Vinschen <corinna@vinschen.de>2015-12-03 12:38:19 +0100
commit89e86492b36cd15876ebb0ed725fbb4308828a9e (patch)
tree213e61fd097ef7204c642840dd71664bb4c3ba1f /newlib/libc/stdlib/wcstombs.c
parent8974e06da3c0214613aa27dc08e1de2b02e27231 (diff)
downloadcygnal-89e86492b36cd15876ebb0ed725fbb4308828a9e.tar.gz
cygnal-89e86492b36cd15876ebb0ed725fbb4308828a9e.tar.bz2
cygnal-89e86492b36cd15876ebb0ed725fbb4308828a9e.zip
Safely recognize when fork is running from main thread or another pthread
* child_info.h (struct child_info): Add member from_main. * fork.cc (frok::child): Check from_main rather than stackaddr. (frok::parent): Set ch.from_main if running in the main thread. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdlib/wcstombs.c')
0 files changed, 0 insertions, 0 deletions