When testing for availability of pthreads without special compiler options
or libraries also look for thread_detach. SGI has thread_create in libc but complete pthread support only in -lpthread. Fixes #522393. 2.2.1 candidate.Killed by signal 2.
This commit is contained in:
parent
95f8495de8
commit
4f8d05495d
|
@ -465,6 +465,7 @@ int main(){
|
|||
pthread_t p;
|
||||
if(pthread_create(&p,NULL,routine,NULL)!=0)
|
||||
return 1;
|
||||
(void)pthread_detach(p);
|
||||
return 0;
|
||||
}
|
||||
],
|
||||
|
@ -497,6 +498,7 @@ int main(){
|
|||
pthread_t p;
|
||||
if(pthread_create(&p,NULL,routine,NULL)!=0)
|
||||
return 1;
|
||||
(void)pthread_detach(p);
|
||||
return 0;
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue