version 1.94, 2012/04/20 14:22:10
|
version 1.95, 2012/05/16 14:45:25
|
Line 64 unsigned char *racine_segment;
|
Line 64 unsigned char *racine_segment;
|
static pthread_mutex_t mutex_interruptions |
static pthread_mutex_t mutex_interruptions |
= PTHREAD_MUTEX_INITIALIZER; |
= 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 |
void |
modification_pid_thread_pere(struct_processus *s_etat_processus) |
modification_pid_thread_pere(struct_processus *s_etat_processus) |
{ |
{ |