Problems running kinit on HP-UX 11.00, 11i

Albert Chin kerberos at mlists.thewrittenword.com
Fri Jul 8 21:05:23 EDT 2005


On Thu, May 12, 2005 at 09:17:30PM -0500, Albert Chin wrote:
> On Thu, May 12, 2005 at 06:51:52PM -0400, Ken Raeburn wrote:
> > (Other means for figuring out if the thread library is loaded would be 
> > useful, but I don't think the pthread interface gives us much besides, 
> > for example, invoking pthread_create and seeing that it fails.  Or 
> > perhaps, in fact, I should consider setting up a test that invokes 
> > pthread_once, and notes that it returns no error and fails to invoke 
> > the specified function....)
> 
> I think this would be better. I ran the following test:
>   $ cat a.c
> #include <pthread.h>
> #include <stdio.h>
> 
> void
> init (void) {
>   puts ("a");
> }
> 
> int
> main (void) {
>   pthread_once_t once_control = PTHREAD_ONCE_INIT;
> 
>   if (pthread_once (&once_control, init)) {
>     puts ("fail");
>   }
> }
> 
>   $ uname -a
>   HP-UX hulk B.11.11 U 9000/785 2010914556 unlimited-user license
>   $ cc a.c && ./a.out
>   $ cc -mt a.c && ./a.out
> a

BTW, this is fixed with PHCO_29495.

-- 
albert chin (china at thewrittenword.com)


More information about the Kerberos mailing list