]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Improve threaded handling of errno:
authorJulian Seward <jseward@acm.org>
Fri, 9 May 2003 23:40:34 +0000 (23:40 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 9 May 2003 23:40:34 +0000 (23:40 +0000)
commitecee893b06c69bbedbcd6de2177ca726577b72e0
tree8d09a5aa54b3c1dfe462d1de3fb72835ca21af55
parentb4894b2b23f9a0ac80f33ea41c6a66f894026ea2
Improve threaded handling of errno:

- Change various incorrect direct references to errno into
  *(__errno_location()).

- In __errno_location and __h_errno_location, treat the tid==1 case
  (root thread) specially, as with __res_state().

This seems to fix a bug in threaded handling of errno on R H 9 and SuSE8.2,
and almost makes OpenOffice work again on R H 9.

MERGE TO STABLE, if it doesn't break anything.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1625
coregrind/arch/x86-linux/vg_libpthread.c
coregrind/vg_libpthread.c