
On Fri, 2010-09-17 at 14:51 +0200, Anders Johansson wrote:
On Friday 17 September 2010 14:19:21 Roger Oberholtzer wrote:
How can I get the value in the LWP column in the running thread itself?
gettid(2)
That did it. And Per's note about syscall was also useful. Should be a reference in the getpid/getppid man pages to call attention to this function. I tried names I thought it might be. gettid must have been too obvious. I expected something like racoonID() or some less than obvious call :) -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org