Ticket #2137: pthread-patch

File pthread-patch, 510 bytes (added by ultrix@…, 20 years ago)

patch file

Line 
1*** src/ec_threads.orig Fri Aug  6 20:21:51 2004
2--- src/ec_threads.c    Fri Aug  6 20:22:42 2004
3***************
4*** 245,252 ****
5--- 245,256 ----
6     /* send the cancel signal to the thread */
7     pthread_cancel((pthread_t)id);
8 
9+ #ifndef OS_DARWIN
10+          /* XXX - darwin is broken, pthread_join hangs up forever */
11+         
12     /* wait until it has finished */
13     pthread_join((pthread_t)id, NULL);
14+ #endif
15 
16     DEBUG_MSG("ec_thread_destroy -- [%s] terminated", ec_thread_getname(id));
17