[24260] in Kerberos
Re: Problems running kinit on HP-UX 11.00, 11i
daemon@ATHENA.MIT.EDU (Albert Chin)
Fri Jul 8 21:06:08 2005
Date: Fri, 8 Jul 2005 20:05:23 -0500
From: Albert Chin <kerberos@mlists.thewrittenword.com>
To: kerberos@mit.edu
Message-ID: <20050709010522.GG10907@mail1.thewrittenword.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050513021730.GA61725@mail1.thewrittenword.com>
Reply-To: kerberos@mit.edu
Errors-To: kerberos-bounces@mit.edu
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@thewrittenword.com)
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos