Index: trunk/SophyaLib/SysTools/psighand.cc
===================================================================
--- trunk/SophyaLib/SysTools/psighand.cc	(revision 706)
+++ trunk/SophyaLib/SysTools/psighand.cc	(revision 913)
@@ -9,12 +9,24 @@
 static bool sigprstate[6] = {false, false, false, false, false, false};
 
-void PeidaProcessSignal(int s);
+void SophyaProcessSignal(int s);
 
 /* Nouvelle-Fonction */
-void PeidaConfigureSignalhandling(bool cfpe, bool csegv, bool cint, bool cquit, bool cusr1, bool cusr2) 
+/*!\ingroup  SysTools 
+   Configures signal handling. When the flag is true, an exception 
+   \b CaughtSignalExc is thrown with the excpetion id set to the 
+   signal id. With the flag is false, the default signal handling
+   is restored.
+   \param cfpe : Floating point exception \c SIGFPE
+   \param csegv : Segmentation fault \c SIGSEGV
+   \param cint : Interrupt signal \c SIGINT
+   \param cquit : Quit signal \c SIGINT
+   \param cusr1 : User signal 1 \c SIGUSR1
+   \param cusr2 : User signal 1 \c SIGUSR2
+*/
+void SOPHYA::SophyaConfigureSignalhandling(bool cfpe, bool csegv, bool cint, bool cquit, bool cusr1, bool cusr2) 
 {
   struct sigaction ae, ad;
 
-  ae.sa_handler = PeidaProcessSignal;
+  ae.sa_handler = SophyaProcessSignal;
   ad.sa_handler = SIG_DFL;
   memset( &(ae.sa_mask), 0, sizeof(sigset_t) ); 
@@ -31,9 +43,9 @@
     if (cfpe)   { 
       sigaction(SIGFPE, &ae, NULL);
-      puts("PeidaConfigureSignalhandling(): Activating SIGFPE handling (-> throw) ...");
+      puts("SophyaConfigureSignalhandling(): Activating SIGFPE handling (-> throw) ...");
       }
     else  { 
       sigaction(SIGFPE, &ad, NULL);
-      puts("PeidaConfigureSignalhandling(): Back to default SIGFPE handling ...");
+      puts("SophyaConfigureSignalhandling(): Back to default SIGFPE handling ...");
       }
     sigprstate[0] = cfpe;
@@ -43,9 +55,9 @@
     if (csegv)   { 
       sigaction(SIGSEGV, &ae, NULL);
-      puts("PeidaConfigureSignalhandling(): Activating SIGSEGV handling (-> throw) ...");
+      puts("SophyaConfigureSignalhandling(): Activating SIGSEGV handling (-> throw) ...");
       }
     else  { 
       sigaction(SIGSEGV, &ad, NULL);
-      puts("PeidaConfigureSignalhandling(): Back to default SIGSEGV handling ...");
+      puts("SophyaConfigureSignalhandling(): Back to default SIGSEGV handling ...");
       }
     sigprstate[1] = csegv;
@@ -56,9 +68,9 @@
     if (cint)   { 
       sigaction(SIGINT, &ae, NULL);
-      puts("PeidaConfigureSignalhandling(): Activating SIGINT handling (-> throw) ...");
+      puts("SophyaConfigureSignalhandling(): Activating SIGINT handling (-> throw) ...");
       }
     else  { 
       sigaction(SIGINT, &ad, NULL);
-      puts("PeidaConfigureSignalhandling(): Back to default SIGINT handling ...");
+      puts("SophyaConfigureSignalhandling(): Back to default SIGINT handling ...");
       }
     sigprstate[2] = cint; 
@@ -69,9 +81,9 @@
     if (cquit)   { 
       sigaction(SIGQUIT, &ae, NULL);
-      puts("PeidaConfigureSignalhandling(): Activating SIGQUIT handling (-> throw) ...");
+      puts("SophyaConfigureSignalhandling(): Activating SIGQUIT handling (-> throw) ...");
       }
     else  { 
       sigaction(SIGQUIT, &ad, NULL);
-      puts("PeidaConfigureSignalhandling(): Back to default SIGQUIT handling ...");
+      puts("SophyaConfigureSignalhandling(): Back to default SIGQUIT handling ...");
       }
     sigprstate[3] = cquit; 
@@ -82,9 +94,9 @@
     if (cusr1)   { 
       sigaction(SIGUSR1, &ae, NULL);
-      puts("PeidaConfigureSignalhandling(): Activating SIGUSR1 handling (-> throw) ...");
+      puts("SophyaConfigureSignalhandling(): Activating SIGUSR1 handling (-> throw) ...");
       }
     else  { 
       sigaction(SIGUSR1, &ad, NULL);
-      puts("PeidaConfigureSignalhandling(): Back to default SIGUSR1 handling ...");
+      puts("SophyaConfigureSignalhandling(): Back to default SIGUSR1 handling ...");
       }
     sigprstate[4] = cusr1;
@@ -94,9 +106,9 @@
     if (cusr2)   { 
       sigaction(SIGUSR2, &ae, NULL);
-      puts("PeidaConfigureSignalhandling(): Activating SIGUSR2 handling (-> throw) ...");
+      puts("SophyaConfigureSignalhandling(): Activating SIGUSR2 handling (-> throw) ...");
       }
     else  { 
       sigaction(SIGUSR2, &ad, NULL);
-      puts("PeidaConfigureSignalhandling(): Back to default SIGUSR2 handling ...");
+      puts("SophyaConfigureSignalhandling(): Back to default SIGUSR2 handling ...");
       }
     sigprstate[5] = cusr2;
@@ -104,5 +116,5 @@
 }
 /* Nouvelle-Fonction */
-void PeidaProcessSignal(int s)
+void SophyaProcessSignal(int s)
 {
 string msg;
@@ -110,29 +122,29 @@
   {
   case SIGFPE :
-    puts("PeidaProcessSignal: ###Signal SIGFPE catched, throw catchedSIGFPE ###");
+    puts("SophyaProcessSignal: ###Signal SIGFPE catched, throw catchedSIGFPE ###");
     msg = "Caught SIGFPE";
     throw ( CaughtSignalExc(msg, s) );
   case SIGSEGV :
-    puts("PeidaProcessSignal: ###Signal SIGSEGV catched, throw catchedSIGSEGV ###");
+    puts("SophyaProcessSignal: ###Signal SIGSEGV catched, throw catchedSIGSEGV ###");
     msg = "Caught SIGSEGV";
     throw ( CaughtSignalExc(msg, s) );
   case SIGINT :
-    puts("PeidaProcessSignal: ###Signal SIGINT catched, throw catchedSIGINT ###");
+    puts("SophyaProcessSignal: ###Signal SIGINT catched, throw catchedSIGINT ###");
     msg = "Caught SIGINT";
     throw ( CaughtSignalExc(msg, s) );
   case SIGQUIT :
-    puts("PeidaProcessSignal: ###Signal SIGQUIT catched, throw catchedSIGQUIT ###");
+    puts("SophyaProcessSignal: ###Signal SIGQUIT catched, throw catchedSIGQUIT ###");
     msg = "Caught SIGQUIT";
     throw ( CaughtSignalExc(msg, s) );
   case SIGUSR1 :
-    puts("PeidaProcessSignal: ###Signal SIGUSR1 catched, throw catchedSIGUSR1 ###");
+    puts("SophyaProcessSignal: ###Signal SIGUSR1 catched, throw catchedSIGUSR1 ###");
     msg = "Caught SIGUSR1";
     throw ( CaughtSignalExc(msg, s) );
   case SIGUSR2 :
-    puts("PeidaProcessSignal: ###Signal SIGUSR2 catched, throw catchedSIGUSR2 ###");
+    puts("SophyaProcessSignal: ###Signal SIGUSR2 catched, throw catchedSIGUSR2 ###");
     msg = "Caught SIGUSR2";
     throw ( CaughtSignalExc(msg, s) );
   default :
-    printf("PeidaProcessSignal: ###Signal %d catched, throw  inconsistentErr ### \n", s);
+    printf("SophyaProcessSignal: ###Signal %d catched, throw  inconsistentErr ### \n", s);
     msg = "Caught SIG???";
     throw ( CaughtSignalExc(msg, s) );
