--- rpl/src/fusible.c 2011/09/26 15:57:10 1.33 +++ rpl/src/fusible.c 2011/10/04 19:32:35 1.34 @@ -75,7 +75,11 @@ fusible(void *argument) temporisation.tv_sec = 0; temporisation.tv_nsec = 100000000; // un dixième de seconde + // Par défaut, le thread peut être annulé. + +# ifdef PTHREAD_CANCEL_ENABLE pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); +# endif getrusage(RUSAGE_SELF, &s_rusage); temps_cpu_courant = s_rusage.ru_utime.tv_sec +