From: rahuel Date: Thu, 3 Feb 2005 12:50:57 +0000 (+0000) Subject: sigaction was called with a mask of signals (SIGINT | SIGUSR1) X-Git-Tag: V2_2_0~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f419220c5c8ec59e2566a0d47cfe5dc0dede5cb3;p=modules%2Fkernel.git sigaction was called with a mask of signals (SIGINT | SIGUSR1) But sigaction must be called with only one signal code. So there is one call for SIGINT and an other one for SIGUSR1 --- diff --git a/src/Container/Container_i.cxx b/src/Container/Container_i.cxx index 649a29b5e..914409756 100644 --- a/src/Container/Container_i.cxx +++ b/src/Container/Container_i.cxx @@ -282,13 +282,17 @@ void ActSigIntHandler() { struct sigaction SigIntAct ; SigIntAct.sa_sigaction = &SigIntHandler ; SigIntAct.sa_flags = SA_SIGINFO ; - if ( sigaction( SIGINT | SIGUSR1 , &SigIntAct, NULL ) ) { +// DEBUG 03.02.2005 : the first parameter of sigaction is not a mask of signals (SIGINT | SIGUSR1) : +// it must be only one signal ===> one call for SIGINT and an other one for SIGUSR1 + if ( sigaction( SIGINT , &SigIntAct, NULL ) ) { perror("SALOME_Container main ") ; exit(0) ; } - else { - INFOS(pthread_self() << "SigIntHandler activated") ; + if ( sigaction( SIGUSR1 , &SigIntAct, NULL ) ) { + perror("SALOME_Container main ") ; + exit(0) ; } + INFOS(pthread_self() << "SigIntHandler activated") ; } void SetCpuUsed() ;