Diff for /rpl/src/rpl.c between versions 1.160 and 1.187

version 1.160, 2014/07/24 14:38:44 version 1.187, 2016/09/27 15:29:40
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.19    RPL/2 (R) version 4.1.26
   Copyright (C) 1989-2014 Dr. BERTRAND Joël    Copyright (C) 1989-2016 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 123  rplinit(int argc, char *argv[], char *en Line 123  rplinit(int argc, char *argv[], char *en
     errno = 0;      errno = 0;
     s_queue_signaux = NULL;      s_queue_signaux = NULL;
     routine_recursive = 0;      routine_recursive = 0;
       nombre_thread_surveillance_processus = 0;
     pid_processus_pere = getpid();      pid_processus_pere = getpid();
   
   #   ifdef DEBUG_PROC
       __proc = 0;
   #   endif
   
 #   ifdef DEBUG_MEMOIRE  #   ifdef DEBUG_MEMOIRE
     debug_memoire_initialisation();      debug_memoire_initialisation();
 #   endif  #   endif
Line 132  rplinit(int argc, char *argv[], char *en Line 137  rplinit(int argc, char *argv[], char *en
     setvbuf(stdout, NULL, _IOLBF, 0);      setvbuf(stdout, NULL, _IOLBF, 0);
     setvbuf(stderr, NULL, _IOLBF, 0);      setvbuf(stderr, NULL, _IOLBF, 0);
   
     if ((s_etat_processus = malloc(sizeof(struct_processus))) == NULL)      if ((s_etat_processus = sys_malloc(sizeof(struct_processus))) == NULL)
       {
           erreur = d_es_allocation_memoire;
   
           if ((langue = getenv("LANG")) != NULL)
           {
               if (strncmp(langue, "fr", 2) == 0)
               {
                   uprintf("+++Système : Mémoire insuffisante\n");
               }
               else
               {
                   uprintf("+++System : Not enough memory\n");
               }
           }
           else
           {
               uprintf("+++System : Not enough memory\n");
           }
   
           return(EXIT_FAILURE);
       }
   
       (*s_etat_processus).erreur_systeme = d_es;
   
       initialisation_allocateur_buffer(s_etat_processus);
   
       if ((*s_etat_processus).erreur_systeme != d_es)
       {
           erreur = d_es_allocation_memoire;
   
           if ((langue = getenv("LANG")) != NULL)
           {
               if (strncmp(langue, "fr", 2) == 0)
               {
                   uprintf("+++Système : Mémoire insuffisante\n");
               }
               else
               {
                   uprintf("+++System : Not enough memory\n");
               }
           }
           else
           {
               uprintf("+++System : Not enough memory\n");
           }
   
           return(EXIT_FAILURE);
       }
   
       if (initialisation_etat_processus_readline() != 0)
     {      {
         erreur = d_es_allocation_memoire;          erreur = d_es_allocation_memoire;
   
Line 179  rplinit(int argc, char *argv[], char *en Line 234  rplinit(int argc, char *argv[], char *en
         return(EXIT_FAILURE);          return(EXIT_FAILURE);
     }      }
   
     if ((arg_exec = malloc((((size_t) argc) + 1) * sizeof(char *))) == NULL)      if ((arg_exec = sys_malloc((((size_t) argc) + 1) * sizeof(char *))) == NULL)
     {      {
         if ((*s_etat_processus).langue == 'F')          if ((*s_etat_processus).langue == 'F')
         {          {
Line 198  rplinit(int argc, char *argv[], char *en Line 253  rplinit(int argc, char *argv[], char *en
         arg_exec[i] = argv[i];          arg_exec[i] = argv[i];
     }      }
   
     argv[argc] = NULL;      arg_exec[argc] = NULL;
   
     initialisation_contexte_cas(s_etat_processus);      initialisation_contexte_cas(s_etat_processus);
   
Line 234  rplinit(int argc, char *argv[], char *en Line 289  rplinit(int argc, char *argv[], char *en
     pthread_mutexattr_destroy(&attributs_mutex);      pthread_mutexattr_destroy(&attributs_mutex);
   
     pthread_mutexattr_init(&attributs_mutex);      pthread_mutexattr_init(&attributs_mutex);
       pthread_mutexattr_settype(&attributs_mutex, PTHREAD_MUTEX_NORMAL);
       pthread_mutex_init(&((*s_etat_processus).mutex_allocation_buffer),
               &attributs_mutex);
       pthread_mutexattr_destroy(&attributs_mutex);
   
       pthread_mutexattr_init(&attributs_mutex);
     pthread_mutexattr_settype(&attributs_mutex, PTHREAD_MUTEX_RECURSIVE);      pthread_mutexattr_settype(&attributs_mutex, PTHREAD_MUTEX_RECURSIVE);
     pthread_mutex_init(&mutex_sections_critiques, &attributs_mutex);      pthread_mutex_init(&mutex_sections_critiques, &attributs_mutex);
     pthread_mutexattr_destroy(&attributs_mutex);      pthread_mutexattr_destroy(&attributs_mutex);
Line 243  rplinit(int argc, char *argv[], char *en Line 304  rplinit(int argc, char *argv[], char *en
     pthread_mutex_init(&mutex_liste_variables_partagees, &attributs_mutex);      pthread_mutex_init(&mutex_liste_variables_partagees, &attributs_mutex);
     pthread_mutexattr_destroy(&attributs_mutex);      pthread_mutexattr_destroy(&attributs_mutex);
   
       pthread_mutexattr_init(&attributs_mutex);
       pthread_mutexattr_settype(&attributs_mutex, PTHREAD_MUTEX_RECURSIVE);
       pthread_mutex_init(&mutex_liste_threads, &attributs_mutex);
       pthread_mutexattr_destroy(&attributs_mutex);
   
 #   ifndef SEMAPHORES_NOMMES  #   ifndef SEMAPHORES_NOMMES
         sem_init(&((*s_etat_processus).semaphore_fork), 0, 0);          sem_init(&((*s_etat_processus).semaphore_fork), 0, 0);
 #   else  #   else
Line 320  rplinit(int argc, char *argv[], char *en Line 386  rplinit(int argc, char *argv[], char *en
 #           endif  #           endif
   
             liberation_contexte_cas(s_etat_processus);              liberation_contexte_cas(s_etat_processus);
             liberation_queue_signaux(s_etat_processus);              destruction_queue_signaux(s_etat_processus);
   
             if ((*s_etat_processus).langue == 'F')              if ((*s_etat_processus).langue == 'F')
             {              {
Line 354  rplinit(int argc, char *argv[], char *en Line 420  rplinit(int argc, char *argv[], char *en
 #           endif  #           endif
   
             liberation_contexte_cas(s_etat_processus);              liberation_contexte_cas(s_etat_processus);
             liberation_queue_signaux(s_etat_processus);              destruction_queue_signaux(s_etat_processus);
   
             if ((*s_etat_processus).langue == 'F')              if ((*s_etat_processus).langue == 'F')
             {              {
Line 379  rplinit(int argc, char *argv[], char *en Line 445  rplinit(int argc, char *argv[], char *en
   
         if ((*s_etat_processus).langue == 'F')          if ((*s_etat_processus).langue == 'F')
         {          {
             printf("+++Copyright (C) 1989 à 2013, 2014 BERTRAND Joël\n");              printf("+++Copyright (C) 1989 à 2015, 2016 BERTRAND Joël\n");
         }          }
         else          else
         {          {
             printf("+++Copyright (C) 1989 to 2013, 2014 BERTRAND Joel\n");              printf("+++Copyright (C) 1989 to 2015, 2016 BERTRAND Joel\n");
         }          }
     }      }
   
Line 423  rplinit(int argc, char *argv[], char *en Line 489  rplinit(int argc, char *argv[], char *en
 #           endif  #           endif
   
             liberation_contexte_cas(s_etat_processus);              liberation_contexte_cas(s_etat_processus);
             liberation_queue_signaux(s_etat_processus);              destruction_queue_signaux(s_etat_processus);
   
             erreur = d_es_signal;              erreur = d_es_signal;
   
Line 453  rplinit(int argc, char *argv[], char *en Line 519  rplinit(int argc, char *argv[], char *en
         }          }
 #   endif  #   endif
   
     if (lancement_thread_signaux(s_etat_processus) != d_absence_erreur)  
     {  
 #       ifndef SEMAPHORES_NOMMES  
             sem_post(&((*s_etat_processus).semaphore_fork));  
             sem_destroy(&((*s_etat_processus).semaphore_fork));  
 #       else  
             sem_post((*s_etat_processus).semaphore_fork);  
             sem_destroy3((*s_etat_processus).semaphore_fork, getpid(),  
                     pthread_self(), SEM_FORK);  
 #       endif  
   
         liberation_contexte_cas(s_etat_processus);  
         liberation_queue_signaux(s_etat_processus);  
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  
             stackoverflow_deinstall_handler();  
 #       endif  
   
         erreur = d_es_signal;  
   
         if ((*s_etat_processus).langue == 'F')  
         {  
             printf("+++Système : Initialisation des signaux POSIX "  
                     "impossible\n");  
         }  
         else  
         {  
             printf("+++System : Initialization of POSIX signals failed\n");  
         }  
   
         return(EXIT_FAILURE);  
     }  
   
     action.sa_handler = interruption1;      action.sa_handler = interruption1;
     action.sa_flags = 0;      action.sa_flags = 0;
   
Line 501  rplinit(int argc, char *argv[], char *en Line 534  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 545  rplinit(int argc, char *argv[], char *en Line 578  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 578  rplinit(int argc, char *argv[], char *en Line 611  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 622  rplinit(int argc, char *argv[], char *en Line 655  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 643  rplinit(int argc, char *argv[], char *en Line 676  rplinit(int argc, char *argv[], char *en
         return(EXIT_FAILURE);          return(EXIT_FAILURE);
     }      }
   
     if (sigaction(SIGALRM, &action, NULL) != 0)      if (sigaction(SIGUSR2, &action, NULL) != 0)
     {      {
 #       ifndef SEMAPHORES_NOMMES  #       ifndef SEMAPHORES_NOMMES
             sem_post(&((*s_etat_processus).semaphore_fork));              sem_post(&((*s_etat_processus).semaphore_fork));
Line 655  rplinit(int argc, char *argv[], char *en Line 688  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 677  rplinit(int argc, char *argv[], char *en Line 710  rplinit(int argc, char *argv[], char *en
     }      }
   
     signal_test = SIGTEST;      signal_test = SIGTEST;
     raise(SIGALRM);      raise(SIGUSR2);
   
     attente.tv_sec = 0;      attente.tv_sec = 0;
     attente.tv_nsec = 1000000;      attente.tv_nsec = 1000000;
Line 687  rplinit(int argc, char *argv[], char *en Line 720  rplinit(int argc, char *argv[], char *en
         nanosleep(&attente, NULL);          nanosleep(&attente, NULL);
     }      }
   
     if (signal_test != SIGALRM)      if (signal_test != SIGUSR2)
     {      {
 #       ifndef SEMAPHORES_NOMMES  #       ifndef SEMAPHORES_NOMMES
             sem_post(&((*s_etat_processus).semaphore_fork));              sem_post(&((*s_etat_processus).semaphore_fork));
Line 699  rplinit(int argc, char *argv[], char *en Line 732  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 735  rplinit(int argc, char *argv[], char *en Line 768  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 777  rplinit(int argc, char *argv[], char *en Line 810  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 813  rplinit(int argc, char *argv[], char *en Line 846  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 857  rplinit(int argc, char *argv[], char *en Line 890  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 893  rplinit(int argc, char *argv[], char *en Line 926  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 937  rplinit(int argc, char *argv[], char *en Line 970  rplinit(int argc, char *argv[], char *en
 #       endif  #       endif
   
         liberation_contexte_cas(s_etat_processus);          liberation_contexte_cas(s_etat_processus);
         liberation_queue_signaux(s_etat_processus);          destruction_queue_signaux(s_etat_processus);
   
 #       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #       ifdef HAVE_STACK_OVERFLOW_RECOVERY
             stackoverflow_deinstall_handler();              stackoverflow_deinstall_handler();
Line 1038  rplinit(int argc, char *argv[], char *en Line 1071  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1077  rplinit(int argc, char *argv[], char *en Line 1110  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1121  rplinit(int argc, char *argv[], char *en Line 1154  rplinit(int argc, char *argv[], char *en
 #                                   endif  #                                   endif
   
                                     liberation_contexte_cas(s_etat_processus);                                      liberation_contexte_cas(s_etat_processus);
                                     liberation_queue_signaux(s_etat_processus);                                      destruction_queue_signaux(s_etat_processus);
   
 #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 1177  rplinit(int argc, char *argv[], char *en Line 1210  rplinit(int argc, char *argv[], char *en
 #                                   endif  #                                   endif
   
                                     liberation_contexte_cas(s_etat_processus);                                      liberation_contexte_cas(s_etat_processus);
                                     liberation_queue_signaux(s_etat_processus);                                      destruction_queue_signaux(s_etat_processus);
   
 #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 1225  rplinit(int argc, char *argv[], char *en Line 1258  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1263  rplinit(int argc, char *argv[], char *en Line 1296  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1303  rplinit(int argc, char *argv[], char *en Line 1336  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1343  rplinit(int argc, char *argv[], char *en Line 1376  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1382  rplinit(int argc, char *argv[], char *en Line 1415  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1422  rplinit(int argc, char *argv[], char *en Line 1455  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1454  rplinit(int argc, char *argv[], char *en Line 1487  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1486  rplinit(int argc, char *argv[], char *en Line 1519  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1527  rplinit(int argc, char *argv[], char *en Line 1560  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1576  rplinit(int argc, char *argv[], char *en Line 1609  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1616  rplinit(int argc, char *argv[], char *en Line 1649  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1648  rplinit(int argc, char *argv[], char *en Line 1681  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1688  rplinit(int argc, char *argv[], char *en Line 1721  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1728  rplinit(int argc, char *argv[], char *en Line 1761  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1768  rplinit(int argc, char *argv[], char *en Line 1801  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1800  rplinit(int argc, char *argv[], char *en Line 1833  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1845  rplinit(int argc, char *argv[], char *en Line 1878  rplinit(int argc, char *argv[], char *en
 #                                   endif  #                                   endif
   
                                     liberation_contexte_cas(s_etat_processus);                                      liberation_contexte_cas(s_etat_processus);
                                     liberation_queue_signaux(s_etat_processus);                                      destruction_queue_signaux(s_etat_processus);
   
 #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 1899  rplinit(int argc, char *argv[], char *en Line 1932  rplinit(int argc, char *argv[], char *en
 #                                   endif  #                                   endif
   
                                     liberation_contexte_cas(s_etat_processus);                                      liberation_contexte_cas(s_etat_processus);
                                     liberation_queue_signaux(s_etat_processus);                                      destruction_queue_signaux(s_etat_processus);
   
 #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 1944  rplinit(int argc, char *argv[], char *en Line 1977  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 1965  rplinit(int argc, char *argv[], char *en Line 1998  rplinit(int argc, char *argv[], char *en
                             }                              }
   
                             if (((*s_etat_processus).definitions_chainees =                              if (((*s_etat_processus).definitions_chainees =
                                     compactage((*s_etat_processus)                                      compactage(s_etat_processus,
                                     .definitions_chainees)) == NULL)                                      (*s_etat_processus).definitions_chainees))
                                       == NULL)
                             {                              {
 #                               ifndef SEMAPHORES_NOMMES  #                               ifndef SEMAPHORES_NOMMES
                                 sem_post(&((*s_etat_processus).semaphore_fork));                                  sem_post(&((*s_etat_processus).semaphore_fork));
Line 1979  rplinit(int argc, char *argv[], char *en Line 2013  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 2021  rplinit(int argc, char *argv[], char *en Line 2055  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 2066  rplinit(int argc, char *argv[], char *en Line 2100  rplinit(int argc, char *argv[], char *en
 #                                   endif  #                                   endif
   
                                     liberation_contexte_cas(s_etat_processus);                                      liberation_contexte_cas(s_etat_processus);
                                     liberation_queue_signaux(s_etat_processus);                                      destruction_queue_signaux(s_etat_processus);
   
 #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 2120  rplinit(int argc, char *argv[], char *en Line 2154  rplinit(int argc, char *argv[], char *en
 #                                   endif  #                                   endif
   
                                     liberation_contexte_cas(s_etat_processus);                                      liberation_contexte_cas(s_etat_processus);
                                     liberation_queue_signaux(s_etat_processus);                                      destruction_queue_signaux(s_etat_processus);
   
 #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 2164  rplinit(int argc, char *argv[], char *en Line 2198  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 2228  rplinit(int argc, char *argv[], char *en Line 2262  rplinit(int argc, char *argv[], char *en
   
                                         liberation_contexte_cas(                                          liberation_contexte_cas(
                                                 s_etat_processus);                                                  s_etat_processus);
                                         liberation_queue_signaux(                                          destruction_queue_signaux(
                                                 s_etat_processus);                                                  s_etat_processus);
   
 #                                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
Line 2269  rplinit(int argc, char *argv[], char *en Line 2303  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 2308  rplinit(int argc, char *argv[], char *en Line 2342  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 2432  rplinit(int argc, char *argv[], char *en Line 2466  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2470  rplinit(int argc, char *argv[], char *en Line 2504  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2514  rplinit(int argc, char *argv[], char *en Line 2548  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2553  rplinit(int argc, char *argv[], char *en Line 2587  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2604  rplinit(int argc, char *argv[], char *en Line 2638  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2653  rplinit(int argc, char *argv[], char *en Line 2687  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2719  rplinit(int argc, char *argv[], char *en Line 2753  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2758  rplinit(int argc, char *argv[], char *en Line 2792  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2796  rplinit(int argc, char *argv[], char *en Line 2830  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2835  rplinit(int argc, char *argv[], char *en Line 2869  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2873  rplinit(int argc, char *argv[], char *en Line 2907  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 2933  rplinit(int argc, char *argv[], char *en Line 2967  rplinit(int argc, char *argv[], char *en
 #           endif  #           endif
   
             liberation_contexte_cas(s_etat_processus);              liberation_contexte_cas(s_etat_processus);
             liberation_queue_signaux(s_etat_processus);              destruction_queue_signaux(s_etat_processus);
   
 #           ifdef HAVE_STACK_OVERFLOW_RECOVERY  #           ifdef HAVE_STACK_OVERFLOW_RECOVERY
                 stackoverflow_deinstall_handler();                  stackoverflow_deinstall_handler();
Line 2988  rplinit(int argc, char *argv[], char *en Line 3022  rplinit(int argc, char *argv[], char *en
 #           endif  #           endif
   
             liberation_contexte_cas(s_etat_processus);              liberation_contexte_cas(s_etat_processus);
             liberation_queue_signaux(s_etat_processus);              destruction_queue_signaux(s_etat_processus);
   
 #           ifdef HAVE_STACK_OVERFLOW_RECOVERY  #           ifdef HAVE_STACK_OVERFLOW_RECOVERY
                 stackoverflow_deinstall_handler();                  stackoverflow_deinstall_handler();
Line 3250  rplinit(int argc, char *argv[], char *en Line 3284  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 3288  rplinit(int argc, char *argv[], char *en Line 3322  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 3340  rplinit(int argc, char *argv[], char *en Line 3374  rplinit(int argc, char *argv[], char *en
 #               endif  #               endif
   
                 liberation_contexte_cas(s_etat_processus);                  liberation_contexte_cas(s_etat_processus);
                 liberation_queue_signaux(s_etat_processus);                  destruction_queue_signaux(s_etat_processus);
   
 #               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                     stackoverflow_deinstall_handler();                      stackoverflow_deinstall_handler();
Line 3425  rplinit(int argc, char *argv[], char *en Line 3459  rplinit(int argc, char *argv[], char *en
 #                       endif  #                       endif
   
                         liberation_contexte_cas(s_etat_processus);                          liberation_contexte_cas(s_etat_processus);
                         liberation_queue_signaux(s_etat_processus);                          destruction_queue_signaux(s_etat_processus);
   
 #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
                             stackoverflow_deinstall_handler();                              stackoverflow_deinstall_handler();
Line 3472  rplinit(int argc, char *argv[], char *en Line 3506  rplinit(int argc, char *argv[], char *en
 #                       endif  #                       endif
   
                         liberation_contexte_cas(s_etat_processus);                          liberation_contexte_cas(s_etat_processus);
                         liberation_queue_signaux(s_etat_processus);                          destruction_queue_signaux(s_etat_processus);
   
 #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
                             stackoverflow_deinstall_handler();                              stackoverflow_deinstall_handler();
Line 3547  rplinit(int argc, char *argv[], char *en Line 3581  rplinit(int argc, char *argv[], char *en
 #                       endif  #                       endif
   
                         liberation_contexte_cas(s_etat_processus);                          liberation_contexte_cas(s_etat_processus);
                         liberation_queue_signaux(s_etat_processus);                          destruction_queue_signaux(s_etat_processus);
   
 #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
                             stackoverflow_deinstall_handler();                              stackoverflow_deinstall_handler();
Line 3598  rplinit(int argc, char *argv[], char *en Line 3632  rplinit(int argc, char *argv[], char *en
 #                       endif  #                       endif
   
                         liberation_contexte_cas(s_etat_processus);                          liberation_contexte_cas(s_etat_processus);
                         liberation_queue_signaux(s_etat_processus);                          destruction_queue_signaux(s_etat_processus);
   
 #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
                             stackoverflow_deinstall_handler();                              stackoverflow_deinstall_handler();
Line 3690  rplinit(int argc, char *argv[], char *en Line 3724  rplinit(int argc, char *argv[], char *en
 #                           endif  #                           endif
   
                             liberation_contexte_cas(s_etat_processus);                              liberation_contexte_cas(s_etat_processus);
                             liberation_queue_signaux(s_etat_processus);                              destruction_queue_signaux(s_etat_processus);
   
 #                           ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                           ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 3744  rplinit(int argc, char *argv[], char *en Line 3778  rplinit(int argc, char *argv[], char *en
 #                       endif  #                       endif
   
                         liberation_contexte_cas(s_etat_processus);                          liberation_contexte_cas(s_etat_processus);
                         liberation_queue_signaux(s_etat_processus);                          destruction_queue_signaux(s_etat_processus);
   
 #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
                             stackoverflow_deinstall_handler();                              stackoverflow_deinstall_handler();
Line 3826  rplinit(int argc, char *argv[], char *en Line 3860  rplinit(int argc, char *argv[], char *en
 #                       endif  #                       endif
   
                         liberation_contexte_cas(s_etat_processus);                          liberation_contexte_cas(s_etat_processus);
                         liberation_queue_signaux(s_etat_processus);                          destruction_queue_signaux(s_etat_processus);
   
 #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
                             stackoverflow_deinstall_handler();                              stackoverflow_deinstall_handler();
Line 3869  rplinit(int argc, char *argv[], char *en Line 3903  rplinit(int argc, char *argv[], char *en
 #                       endif  #                       endif
   
                         liberation_contexte_cas(s_etat_processus);                          liberation_contexte_cas(s_etat_processus);
                         liberation_queue_signaux(s_etat_processus);                          destruction_queue_signaux(s_etat_processus);
   
 #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
                             stackoverflow_deinstall_handler();                              stackoverflow_deinstall_handler();
Line 3913  rplinit(int argc, char *argv[], char *en Line 3947  rplinit(int argc, char *argv[], char *en
 #                       endif  #                       endif
   
                         liberation_contexte_cas(s_etat_processus);                          liberation_contexte_cas(s_etat_processus);
                         liberation_queue_signaux(s_etat_processus);                          destruction_queue_signaux(s_etat_processus);
   
 #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
                             stackoverflow_deinstall_handler();                              stackoverflow_deinstall_handler();
Line 3956  rplinit(int argc, char *argv[], char *en Line 3990  rplinit(int argc, char *argv[], char *en
 #                       endif  #                       endif
   
                         liberation_contexte_cas(s_etat_processus);                          liberation_contexte_cas(s_etat_processus);
                         liberation_queue_signaux(s_etat_processus);                          destruction_queue_signaux(s_etat_processus);
   
 #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
                             stackoverflow_deinstall_handler();                              stackoverflow_deinstall_handler();
Line 4004  rplinit(int argc, char *argv[], char *en Line 4038  rplinit(int argc, char *argv[], char *en
 #                       endif  #                       endif
   
                         liberation_contexte_cas(s_etat_processus);                          liberation_contexte_cas(s_etat_processus);
                         liberation_queue_signaux(s_etat_processus);                          destruction_queue_signaux(s_etat_processus);
   
 #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                       ifdef HAVE_STACK_OVERFLOW_RECOVERY
                             stackoverflow_deinstall_handler();                              stackoverflow_deinstall_handler();
Line 4070  rplinit(int argc, char *argv[], char *en Line 4104  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 4133  rplinit(int argc, char *argv[], char *en Line 4167  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 4177  rplinit(int argc, char *argv[], char *en Line 4211  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 4225  rplinit(int argc, char *argv[], char *en Line 4259  rplinit(int argc, char *argv[], char *en
 #                           endif  #                           endif
   
                             liberation_contexte_cas(s_etat_processus);                              liberation_contexte_cas(s_etat_processus);
                             liberation_queue_signaux(s_etat_processus);                              destruction_queue_signaux(s_etat_processus);
   
 #                           ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                           ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 4282  rplinit(int argc, char *argv[], char *en Line 4316  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 4325  rplinit(int argc, char *argv[], char *en Line 4359  rplinit(int argc, char *argv[], char *en
 #                           endif  #                           endif
   
                             liberation_contexte_cas(s_etat_processus);                              liberation_contexte_cas(s_etat_processus);
                             liberation_queue_signaux(s_etat_processus);                              destruction_queue_signaux(s_etat_processus);
   
 #                           ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                           ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 4362  rplinit(int argc, char *argv[], char *en Line 4396  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 4406  rplinit(int argc, char *argv[], char *en Line 4440  rplinit(int argc, char *argv[], char *en
 #                           endif  #                           endif
   
                             liberation_contexte_cas(s_etat_processus);                              liberation_contexte_cas(s_etat_processus);
                             liberation_queue_signaux(s_etat_processus);                              destruction_queue_signaux(s_etat_processus);
   
 #                           ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                           ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                 stackoverflow_deinstall_handler();                                  stackoverflow_deinstall_handler();
Line 4446  rplinit(int argc, char *argv[], char *en Line 4480  rplinit(int argc, char *argv[], char *en
 #                                   endif  #                                   endif
   
                                     liberation_contexte_cas(s_etat_processus);                                      liberation_contexte_cas(s_etat_processus);
                                     liberation_queue_signaux(s_etat_processus);                                      destruction_queue_signaux(s_etat_processus);
   
 #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                         stackoverflow_deinstall_handler();                                          stackoverflow_deinstall_handler();
Line 4493  rplinit(int argc, char *argv[], char *en Line 4527  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 4530  rplinit(int argc, char *argv[], char *en Line 4564  rplinit(int argc, char *argv[], char *en
 #                                   endif  #                                   endif
   
                                     liberation_contexte_cas(s_etat_processus);                                      liberation_contexte_cas(s_etat_processus);
                                     liberation_queue_signaux(s_etat_processus);                                      destruction_queue_signaux(s_etat_processus);
   
 #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                         stackoverflow_deinstall_handler();                                          stackoverflow_deinstall_handler();
Line 4577  rplinit(int argc, char *argv[], char *en Line 4611  rplinit(int argc, char *argv[], char *en
 #                               endif  #                               endif
   
                                 liberation_contexte_cas(s_etat_processus);                                  liberation_contexte_cas(s_etat_processus);
                                 liberation_queue_signaux(s_etat_processus);                                  destruction_queue_signaux(s_etat_processus);
   
 #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                               ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                     stackoverflow_deinstall_handler();                                      stackoverflow_deinstall_handler();
Line 4928  rplinit(int argc, char *argv[], char *en Line 4962  rplinit(int argc, char *argv[], char *en
                                         (*(*((struct_processus_fils *)                                          (*(*((struct_processus_fils *)
                                         (*(*((struct_liste_chainee *)                                          (*(*((struct_liste_chainee *)
                                         l_element_courant)).donnee).objet))                                          l_element_courant)).donnee).objet))
                                         .thread).pid, rpl_sigurg);                                          .thread).pid, rpl_sigurg, d_faux);
                             }                              }
                             else                              else
                             {                              {
Line 4939  rplinit(int argc, char *argv[], char *en Line 4973  rplinit(int argc, char *argv[], char *en
                                             (*(*((struct_processus_fils *)                                              (*(*((struct_processus_fils *)
                                             (*(*((struct_liste_chainee *)                                              (*(*((struct_liste_chainee *)
                                             l_element_courant)).donnee).objet))                                              l_element_courant)).donnee).objet))
                                             .thread).pid, rpl_sigabort);                                              .thread).pid, rpl_sigabort, d_faux);
                                 }                                  }
                                 else                                  else
                                 {                                  {
Line 4947  rplinit(int argc, char *argv[], char *en Line 4981  rplinit(int argc, char *argv[], char *en
                                             (*(*((struct_processus_fils *)                                              (*(*((struct_processus_fils *)
                                             (*(*((struct_liste_chainee *)                                              (*(*((struct_liste_chainee *)
                                             l_element_courant)).donnee).objet))                                              l_element_courant)).donnee).objet))
                                             .thread).pid, rpl_sigstop);                                              .thread).pid, rpl_sigstop, d_faux);
                                 }                                  }
                             }                              }
                         }                          }
Line 5062  rplinit(int argc, char *argv[], char *en Line 5096  rplinit(int argc, char *argv[], char *en
 #                                   endif  #                                   endif
   
                                     liberation_contexte_cas(s_etat_processus);                                      liberation_contexte_cas(s_etat_processus);
                                     liberation_queue_signaux(s_etat_processus);                                      destruction_queue_signaux(s_etat_processus);
   
 #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                         stackoverflow_deinstall_handler();                                          stackoverflow_deinstall_handler();
Line 5113  rplinit(int argc, char *argv[], char *en Line 5147  rplinit(int argc, char *argv[], char *en
 #                                   endif  #                                   endif
   
                                     liberation_contexte_cas(s_etat_processus);                                      liberation_contexte_cas(s_etat_processus);
                                     liberation_queue_signaux(s_etat_processus);                                      destruction_queue_signaux(s_etat_processus);
   
 #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY  #                                   ifdef HAVE_STACK_OVERFLOW_RECOVERY
                                         stackoverflow_deinstall_handler();                                          stackoverflow_deinstall_handler();
Line 5344  rplinit(int argc, char *argv[], char *en Line 5378  rplinit(int argc, char *argv[], char *en
                     {                      {
                         if ((*resultats) != NULL)                          if ((*resultats) != NULL)
                         {                          {
                             free((*resultats));                              sys_free((*resultats));
   
                             if (((*resultats) = malloc(((size_t)                              if (((*resultats) = sys_malloc(((size_t)
                                     ((*s_etat_processus)                                      ((*s_etat_processus)
                                     .hauteur_pile_operationnelle + 1))                                      .hauteur_pile_operationnelle + 1))
                                     * sizeof(unsigned char **))) != NULL)                                      * sizeof(unsigned char **))) != NULL)
Line 5667  rplinit(int argc, char *argv[], char *en Line 5701  rplinit(int argc, char *argv[], char *en
   
     retrait_thread(s_etat_processus);      retrait_thread(s_etat_processus);
   
       attente.tv_sec = 0;
       attente.tv_nsec = GRANULARITE_us * 1000;
   
       while(nombre_thread_surveillance_processus != 0)
       {
           nanosleep(&attente, NULL);
           INCR_GRANULARITE(attente.tv_nsec);
       }
   
     pthread_mutex_destroy(&((*s_etat_processus).mutex_pile_processus));      pthread_mutex_destroy(&((*s_etat_processus).mutex_pile_processus));
     pthread_mutex_destroy(&((*s_etat_processus).mutex_allocation));      pthread_mutex_destroy(&((*s_etat_processus).mutex_allocation));
     pthread_mutex_destroy(&((*s_etat_processus).mutex_interruptions));      pthread_mutex_destroy(&((*s_etat_processus).mutex_interruptions));
Line 5700  rplinit(int argc, char *argv[], char *en Line 5743  rplinit(int argc, char *argv[], char *en
         erreur = d_erreur;          erreur = d_erreur;
     }      }
   
     free(arg_exec);      liberation_etat_processus_readline();
     arret_thread_signaux(s_etat_processus);  
     free(s_etat_processus);      liberation_allocateur_buffer(s_etat_processus);
       pthread_mutex_destroy(&((*s_etat_processus).mutex_allocation_buffer));
   
       sys_free(s_etat_processus);
       sys_free(arg_exec);
   
 #   ifdef DEBUG_MEMOIRE  #   ifdef DEBUG_MEMOIRE
     debug_memoire_verification();      debug_memoire_verification();
Line 5828  controle_integrite(struct_processus *s_e Line 5875  controle_integrite(struct_processus *s_e
   
   
 unsigned char *  unsigned char *
 date_compilation()  date_compilation(struct_processus *s_etat_processus)
 {  {
     unsigned char       *date;      unsigned char       *date;
   

Removed from v.1.160  
changed lines
  Added in v.1.187


CVSweb interface <joel.bertrand@systella.fr>