diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-08-11 22:34:09 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-08-11 22:34:09 -0400 |
commit | 8b625e45ff27ae6604ced1039d6c28293b60380a (patch) | |
tree | ae5fac497f5478961346de7e8fda7ba8f5b74ffd | |
parent | c5168071738467fb67e932976e56f364291cca60 (diff) | |
download | musl-8b625e45ff27ae6604ced1039d6c28293b60380a.tar.gz musl-8b625e45ff27ae6604ced1039d6c28293b60380a.tar.xz musl-8b625e45ff27ae6604ced1039d6c28293b60380a.zip |
normal exit from timer thread should run dtors, restore cancel state
-rw-r--r-- | src/time/timer_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/timer_create.c b/src/time/timer_create.c index 593f73aa..f596b0fe 100644 --- a/src/time/timer_create.c +++ b/src/time/timer_create.c @@ -40,7 +40,7 @@ static void timer_handler(int sig, siginfo_t *si, void *ctx) if (!setjmp(jb) && si->si_code == SI_TIMER) { pthread_cleanup_push(cleanup_fromsig, jb); notify(val); - pthread_cleanup_pop(0); + pthread_cleanup_pop(1); } } |