Message159187
| Author |
neologix |
| Recipients |
Raphael.Cruzeiro, barry, neologix |
| Date |
2012年04月24日.18:44:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAH_1eM0oEoPPooEiYNQFPC6UOvyp=sDhpW6euKccumWJAHLc_A@mail.gmail.com> |
| In-reply-to |
<1335214535.54.0.037053632097.issue14610@psf.upfronthosting.co.za> |
| Content |
Your strace output looks strange :-)
Unless it's truncated, we see that the wait4() doesn't return when the
test pthread executable exits...
Could you try building this code :
"""
#include <pthread.h>
void* routine(void* p){return NULL;}
int main(){
pthread_t p;
if(pthread_create(&p,NULL,routine,NULL)!=0)
return 1;
(void)pthread_detach(p);
return 0;
}
"""
(with gcc -o test test.c -lpthread)
And running it from the command line, to see your shell hangs (you
might also want to try 'strace -f sh -c "test"'). |
|