Dmitriy Khodos wrote:
 The function fails if the PID does not match. However,
since PID is obtained by calling getpid(2), under Linux it is going to be
different in different threads.

It depends which version of Linux you are running and which thread implementation you have at runtime. The current scheme with Linux 2.6 and NPTL is a 1:1 thread implementation keeps the getpid() the same but pthread_self() is unique.

I think all useful version of threads on linux are a pthreads implementation with a working pthread_self() function.

There is also gettid() on linux.


Darryl
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to