From 0bc54a098d12ec43a6d14ee6b308add5d8a34de5 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Thu, 28 Sep 2000 20:31:35 +0000 Subject: [PATCH] PTHREAD_CANCEL_ASYNCHRONOUS so myAtExit cancels immediately --- src/libCom/osi/os/posix/osdThread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libCom/osi/os/posix/osdThread.c b/src/libCom/osi/os/posix/osdThread.c index 41d64424c..0fe564819 100644 --- a/src/libCom/osi/os/posix/osdThread.c +++ b/src/libCom/osi/os/posix/osdThread.c @@ -243,6 +243,8 @@ static void * start_routine(void *arg) status = pthread_setspecific(getpthreadInfo,arg); checkStatusQuit(status,"pthread_setspecific","start_routine"); + status = pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL); + checkStatusQuit(status,"pthread_setcanceltype","start_routine"); semMutexMustTake(listMutex); ellAdd(&pthreadList,&pthreadInfo->node); semMutexGive(listMutex);