From f419220c5c8ec59e2566a0d47cfe5dc0dede5cb3 Mon Sep 17 00:00:00 2001 From: rahuel Date: Thu, 3 Feb 2005 12:50:57 +0000 Subject: [PATCH] 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 --- src/Container/Container_i.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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() ; -- 2.39.2