On Sat, 1 Nov 2003 01:59:16 -0500 Mark Mielke <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 01, 2003 at 03:27:54AM +0100, Tomasz Kojm wrote:
> > 29 22:00:12 2003
> > > @@ -27,6 +27,7 @@
> > > #include <sys/types.h>
> > > #include <sys/socket.h>
> > > #include <netinet/in.h>
> > > +#include <errno.h>
> > Never use a global error variable in multithreaded environment
> > because it introduces a race condition and the resulting error
> > number is not reliable.
>
> I missed the context here, but if it is 'errno', errno only appears to
> be a global variable on most systems that support threading. For
> example, in linux/errno.h:
I agree, but this is not portable and we cannot rely on it.
Best regards,
Tomasz Kojm
--
oo ..... http://www.clamav.net/gpg/tkojm.gpg
(\/)\......... 0DCA5A08407D5288279DB43454822DC8985A444B
\..........._ Sat Nov 1 14:14:02 CET 2003
//\ /\
pgp00000.pgp
Description: PGP signature
