[Date Prev][Date Next] [Chronological] [Thread] [Top]

Configure problem (ITS#928)



Full_Name: Steve Bower
Version: 2.0.7
OS: Linux hostname 2.2.17 #1 SMP Thu Sep 14 09:48:22 EDT 2000 i686 unknown
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (24.240.72.25)


When trying to detech a working version of pthreads the test program that
compiles fails when run. I checked into the failure and it turns out that the
task function that is run

static void *task(p)
  void *p;
{
  return (void *) (p == NULL);
}

finishes before "pthread_detach" call is made. I am assuming that this is
because I have 2 fast processors and/or chaos is not on my side tonight. below
is a modified version of the "task" function that fixes the problem.

static void *task(p)
  void *p;
{
  while( 1 ){}
  return (void *) (p == NULL);
}

--

cheers