SV: semaphores
Mikael.Ambrus@elema.siemens.se
Mikael.Ambrus@elema.siemens.se
Wed Apr 21 08:10:00 GMT 1999
-----Ursprungligt meddelande-----
FrÃÂ¥n: Bossom, John [SMTP:John.Bossom@Cognos.COM]
Skickat: den 21 april 1999 15:36
Till: Ambrus Mikael
ÃÂmne: RE: semaphores
OK, that must explain it. Thanks!
I will try your suggestions by tomorrow.
W.k.r. Michael Ambrus
If I understand this correctly, you decide to delay checking errno
until after calling both perror AND printf.
printf could call any number of system level functions that can
possibly change errno.
You are not supposed to have any intervening system calls between
the one you made and the check of errno. I suggest you copy errno to a
local variable if you want to delay checking it...
More information about the Pthreads-win32
mailing list