[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
configure pthread tests fail on fast computers (ITS#1037)
Full_Name: Paul T. Little
Version: 2.0.7
OS: RedHat 7
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (207.174.21.155)
On my computer the pthread test programs fail because the task thread completes
before the detach. I have a dual PIII 800 Mhz box.
symptom:
pthread_detach_status = 3
strerror(3) = No such process
work around:
I added busy work to each test program in configure:
static void *task(p)
void *p
{
/* busy work so thread doesn't complete before detach */
int i = 100000 ;
while (i--) {
int j = i / 3 ;
}
return (void *) (p == NULL) ;
}
Please upgrade configure with this work around or whatever you deem
appropriate.
Thank you.