version 1.83, 2011/10/05 13:14:19
|
version 1.89, 2011/12/16 13:46:56
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.4 |
RPL/2 (R) version 4.1.5 |
Copyright (C) 1989-2011 Dr. BERTRAND Joël |
Copyright (C) 1989-2011 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 1772 interruption3(int signal)
|
Line 1772 interruption3(int signal)
|
kill(pid_processus_pere, SIGUSR1); |
kill(pid_processus_pere, SIGUSR1); |
} |
} |
|
|
|
|
if (signal != SIGUSR2) |
if (signal != SIGUSR2) |
{ |
{ |
write(STDERR_FILENO, message_1, strlen(message_1)); |
write(STDERR_FILENO, message_1, strlen(message_1)); |
Line 1828 interruption_violation_access(void *adre
|
Line 1827 interruption_violation_access(void *adre
|
unsigned char message[] = "+++System : Trying to catch access " |
unsigned char message[] = "+++System : Trying to catch access " |
"violation\n"; |
"violation\n"; |
|
|
static int compteur_erreur = 0; |
static int compteur_erreur = 0; |
|
|
if ((gravite == 0) && (routine_recursive != 0)) |
if ((gravite == 0) && (routine_recursive != 0)) |
{ |
{ |
Line 1935 signal_stop(struct_processus *s_etat_pro
|
Line 1934 signal_stop(struct_processus *s_etat_pro
|
|
|
if (pid == getpid()) |
if (pid == getpid()) |
{ |
{ |
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) |
|
== NULL) |
|
{ |
|
deverrouillage_gestionnaire_signaux(s_etat_processus); |
|
return; |
|
} |
|
|
|
if (((*s_etat_processus).type_debug & d_debug_signaux) != 0) |
if (((*s_etat_processus).type_debug & d_debug_signaux) != 0) |
{ |
{ |
printf("[%d] RPL/SIGSTOP (thread %llu)\n", (int) getpid(), |
printf("[%d] RPL/SIGSTOP (thread %llu)\n", (int) getpid(), |
Line 2033 signal_urg(struct_processus *s_etat_proc
|
Line 2025 signal_urg(struct_processus *s_etat_proc
|
|
|
if (pid == getpid()) |
if (pid == getpid()) |
{ |
{ |
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) |
|
== NULL) |
|
{ |
|
deverrouillage_gestionnaire_signaux(s_etat_processus); |
|
return; |
|
} |
|
|
|
if (((*s_etat_processus).type_debug & d_debug_signaux) != 0) |
if (((*s_etat_processus).type_debug & d_debug_signaux) != 0) |
{ |
{ |
printf("[%d] RPL/SIGURG (thread %llu)\n", (int) getpid(), |
printf("[%d] RPL/SIGURG (thread %llu)\n", (int) getpid(), |
Line 2089 signal_abort(struct_processus *s_etat_pr
|
Line 2074 signal_abort(struct_processus *s_etat_pr
|
|
|
if (pid == getpid()) |
if (pid == getpid()) |
{ |
{ |
if ((s_etat_processus = recherche_thread(getpid(), pthread_self())) |
|
== NULL) |
|
{ |
|
deverrouillage_gestionnaire_signaux(s_etat_processus); |
|
return; |
|
} |
|
|
|
(*s_etat_processus).arret_depuis_abort = -1; |
(*s_etat_processus).arret_depuis_abort = -1; |
|
|
/* |
/* |
Line 2362 nom_segment(unsigned char *chemin, pid_t
|
Line 2340 nom_segment(unsigned char *chemin, pid_t
|
|
|
# ifdef IPCS_SYSV // !POSIX |
# ifdef IPCS_SYSV // !POSIX |
# ifndef OS2 // !OS2 |
# ifndef OS2 // !OS2 |
|
|
if ((fichier = malloc((strlen(chemin) + 1 + 256 + 1) * |
if ((fichier = malloc((strlen(chemin) + 1 + 256 + 1) * |
sizeof(unsigned char))) == NULL) |
sizeof(unsigned char))) == NULL) |
{ |
{ |
Line 2620 envoi_signal_processus(pid_t pid, enum s
|
Line 2599 envoi_signal_processus(pid_t pid, enum s
|
# endif |
# endif |
} |
} |
|
|
|
kill(pid, SIGALRM); |
|
|
return(0); |
return(0); |
} |
} |
|
|
Line 2683 envoi_signal_thread(pthread_t tid, enum
|
Line 2664 envoi_signal_thread(pthread_t tid, enum
|
return(1); |
return(1); |
} |
} |
|
|
|
pthread_kill(tid, SIGALRM); |
|
|
return(0); |
return(0); |
} |
} |
|
|
Line 2699 envoi_signal_contexte(struct_processus *
|
Line 2682 envoi_signal_contexte(struct_processus *
|
% LONGUEUR_QUEUE_SIGNAUX; |
% LONGUEUR_QUEUE_SIGNAUX; |
pthread_mutex_unlock(&mutex_interruptions); |
pthread_mutex_unlock(&mutex_interruptions); |
|
|
|
pthread_kill((*s_etat_processus_a_signaler).tid, SIGALRM); |
|
|
return(0); |
return(0); |
} |
} |
|
|