Re: -lpthread hangs pam application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ken,

On Fri, Oct 21, 2005 at 03:45:51PM -0700, Ken Partridge wrote:
> I have an application that is calling the pam functions (i.e. pam_start,
> pam_authenticate, etc.)

> When i have it compiled without the -lpthread tag, life is good
> everything works.

> If all i do is add the -lpthread (NOT calling any pam functions from a
> thread) the app hangs when the conversation callback returns.

> Even though for this simple application i am not calling any pam
> functions from inside a thread, is this normal behavior and should I
> move on or is there a work around?

What version of PAM are you using?  Recent builds of Linux-PAM include
implementations of routines like getpwnam() which attempt to enforce thread
safety by using pthread mutexes.  I'm not sure how this would be related,
but I don't see anything else that would be.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@xxxxxxxxxx                                   http://www.debian.org/

Attachment: signature.asc
Description: Digital signature

_______________________________________________

Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux