Posted: Tue Feb 12, 2008 9:18 pm Post subject: Thread id in Exit programs - RHEL3
Centurion
Joined: 09 Jan 2006 Posts: 138 Location: India
Hi All,
We have API exit and Security exit programs which need to collect thread id when invoked. The exit code works in Solaris. But the same code is printing negative values in linux - rhel3. We are using
In Solaris, pthread_t is of type unsigned int. In RHEL3, it is of type unsigned long int. We were getting this problem as we were reading thread id as int("%i"). It got solved by reading thread id as unsigned long int("%lu" ). Hence issue is related to OS.....nothing specific to MQ/Exits....... Now we are getting positive values as thread ids. But surprisingly these thread ids are very large values - 10 digit numbers though there will be only 10-15 threads.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum