Re: rlm_perl CLONE/thread identification ?

2006-10-09 Thread Boian Jordanov
On Sunday 08 October 2006 17:38, Jakub Wartak wrote: I want to obtain unique identified of each CLONE, because the goal is to create DB connection for each CLONE for performance reasons, the DBI object/handle AFAIK shouldn't be shared. Do it like that in main: our $dbh ; and then in CLONE

rlm_perl CLONE/thread identification ?

2006-10-08 Thread Jakub Wartak
Hello group, I tried using use threads and quering by simple: my $id = threads-tid; But it always returns 0 ( meaning that the perl code is running under main() program ), but how do I identifiy each CLONE ?? I want to obtain unique identified of each CLONE, because the goal is to create DB