Diff for /rpl/src/interruptions.c between versions 1.9 and 1.10

version 1.9, 2010/04/21 13:45:50 version 1.10, 2010/04/28 11:05:45
Line 1959  interruption5(int signal, siginfo_t *sig Line 1959  interruption5(int signal, siginfo_t *sig
   
         if (((*s_etat_processus).type_debug & d_debug_signaux) != 0)          if (((*s_etat_processus).type_debug & d_debug_signaux) != 0)
         {          {
             printf("[%d] SIGFSTOP (thread %llu)\n", (int) getpid(),              if (signal == SIGFSTOP)
                     (unsigned long long) pthread_self());              {
             fflush(stdout);                  printf("[%d] SIGFSTOP (thread %llu)\n", (int) getpid(),
                           (unsigned long long) pthread_self());
                   fflush(stdout);
               }
               else
               {
                   printf("[%d] SIGFABORT (thread %llu)\n", (int) getpid(),
                           (unsigned long long) pthread_self());
                   fflush(stdout);
               }
         }          }
   
         /*          /*
Line 1971  interruption5(int signal, siginfo_t *sig Line 1980  interruption5(int signal, siginfo_t *sig
          * -1 -> traitement retardé (un ou plusieurs signaux stop reçus)           * -1 -> traitement retardé (un ou plusieurs signaux stop reçus)
          */           */
   
         if ((*s_etat_processus).var_volatile_traitement_retarde_stop == 0)          if (signal == SIGFSTOP)
         {          {
             (*s_etat_processus).var_volatile_requete_arret = -1;              if ((*s_etat_processus).var_volatile_traitement_retarde_stop == 0)
               {
                   (*s_etat_processus).var_volatile_requete_arret = -1;
               }
               else
               {
                   (*s_etat_processus).var_volatile_traitement_retarde_stop = -1;
               }
         }          }
         else          else
         {          {
             (*s_etat_processus).var_volatile_traitement_retarde_stop = -1;              (*s_etat_processus).var_volatile_requete_arret = -1;
               (*s_etat_processus).arret_depuis_abort = -1;
         }          }
     }      }
     else      else
Line 1986  interruption5(int signal, siginfo_t *sig Line 2003  interruption5(int signal, siginfo_t *sig
   
         if (recherche_thread_principal(getpid(), &thread) == d_vrai)          if (recherche_thread_principal(getpid(), &thread) == d_vrai)
         {          {
             pthread_kill(thread, SIGFSTOP);              pthread_kill(thread, signal);
             deverrouillage_gestionnaire_signaux();              deverrouillage_gestionnaire_signaux();
             return;              return;
         }          }

Removed from v.1.9  
changed lines
  Added in v.1.10


CVSweb interface <joel.bertrand@systella.fr>