Преглед изворни кода

normal exit from timer thread should run dtors, restore cancel state

Rich Felker пре 13 година
родитељ
комит
8b625e45ff
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/time/timer_create.c

+ 1 - 1
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);
 	}
 }