--- rpl/src/interruptions.c 2012/04/20 14:22:10 1.94 +++ rpl/src/interruptions.c 2012/05/16 14:45:25 1.95 @@ -64,6 +64,28 @@ unsigned char *racine_segment; static pthread_mutex_t mutex_interruptions = PTHREAD_MUTEX_INITIALIZER; +void * +thread_surveillance_signaux(void *argument) +{ + // Chaque kill() ou pthread_kill() incrémente le sémaphore. Lorsque le + // sémaphore est déverrouillé, on part dans un timeout. + // while(sem_wait()) + // { + // nanosleep(); + // if (errno == EINTR) + // { + // continue; + // } + // + // if (sem_trywait() != 0) + // { + // sem_post() + // kill() + // } + // } + pthread_exit(NULL); +} + void modification_pid_thread_pere(struct_processus *s_etat_processus) {