diff options
| author | Rich Felker <dalias@aerifal.cx> | 2011-08-06 20:09:51 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2011-08-06 20:09:51 -0400 | 
| commit | 98acf04fc00cbded6169056f2cd541d31725c091 (patch) | |
| tree | f792014c7cbc4deee8c3de9b511d9e7329f2bf0d /src/thread/cancel_impl.c | |
| parent | 338b663ddb64ecf8a62ad0d1020a29587e0ca81b (diff) | |
| download | musl-98acf04fc00cbded6169056f2cd541d31725c091.tar.gz | |
use weak aliases rather than function pointers to simplify some code
Diffstat (limited to 'src/thread/cancel_impl.c')
| -rw-r--r-- | src/thread/cancel_impl.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/src/thread/cancel_impl.c b/src/thread/cancel_impl.c index 9a02e1a1..4f78a63a 100644 --- a/src/thread/cancel_impl.c +++ b/src/thread/cancel_impl.c @@ -58,7 +58,7 @@ static void cancel_handler(int sig, siginfo_t *si, void *ctx)  		__syscall(SYS_tgkill, self->pid, self->tid, SIGCANCEL);  } -static void testcancel() +void __testcancel()  {  	pthread_t self = __pthread_self();  	if (self->cancel && !self->canceldisable) @@ -73,7 +73,6 @@ static void init_cancellation()  	};  	sigfillset(&sa.sa_mask);  	__libc_sigaction(SIGCANCEL, &sa, 0); -	libc.testcancel = testcancel;  }  int pthread_cancel(pthread_t t) | 
