Small hack for clean exits on Nigel's OS X port

This commit is contained in:
nigel 2005-12-29 13:40:25 +00:00
parent 3802e35346
commit 5d09d2b6c4

View File

@ -167,7 +167,12 @@ static void stop_thread(void)
#ifdef HAVE_PTHREAD_CANCEL #ifdef HAVE_PTHREAD_CANCEL
pthread_cancel(ether_thread); pthread_cancel(ether_thread);
#endif #endif
#ifdef AQUA
// This call, which waits for ether_thread to terminate,
// never returns when used in Nigel's OS X port.
#else
pthread_join(ether_thread, NULL); pthread_join(ether_thread, NULL);
#endif
sem_destroy(&int_ack); sem_destroy(&int_ack);
thread_active = false; thread_active = false;
} }