[xml] Multithread behaviour on Solaris
- From: "Fabrice DESRE - FT.BD/FTRD/DMI/GRI" <fabrice desre francetelecom com>
- To: xml gnome org
- Subject: [xml] Multithread behaviour on Solaris
- Date: Thu, 07 Jun 2001 10:41:20 +0200
Hello,
I'm using libxml/libxslt on Solaris in a multithreaded
application and found an easy to fix bug : The _REENTRANT
flag has to be specified when compiling the library to
avoid inconsistent behaviour of errno.
Including <errno.h> with _REENTRANT defined make errno
a macro that gets the correct value when in a thread.
Otherwise you always get 0 :-(
I also noticed that trio.c define errno as an extern int,
which is not the correct way.
Fabrice
--
Fabrice Desré - France Telecom R&D/DMI/GRI
Tel: +(33) 2 96 05 31 43
Fax: +(33) 2 96 05 32 86
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]