From: Gwenole B. <gb....@fr...> - 2005-08-12 04:45:39
|
Hi, > Which would seem to me to probably _not_ be a semaphore problem? Then make sure HAVE_PTHREAD_{TEST,}CANCEL are defined, through a=20 configure AC_CHECK_FUNCS(pthread_cancel pthread_testcancel) MacOS X 10.2 "supports" both of them, at least they exist for me. Note=20= pthread_testcancel() is also important there because it doesn't have a=20= correct implementation of cancellation points. BTW, do you HAVE_POLL ?=20= If so, it may be necessary to have something like: #if HAVE_POLL struct pollfd pf =3D {fd, POLLIN, 0}; int res =3D poll(&pf, 1, -1); #ifdef HAVE_PTHREAD_TESTCANCEL pthread_testcancel(); #endif #else fd_set rfds; Bye, Gwenol=E9.= |