Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Call  at lib-signals.c:209

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

lib_signals_ignore

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/lib-signals.c)expand/collapse
Show more  
 197  void lib_signals_ignore(int signo, bool restart_syscalls)
 198  {
 199          struct sigaction act;
 200   
 201          if (signo < 0 || signo > MAX_SIGNAL_VALUE) {
 202                  i_panic("Trying to ignore signal %d, but max is %d",
 203                          signo, MAX_SIGNAL_VALUE);
 204          }
 205   
 206          i_assert(signal_handlers[signo] == NULL);
 207   
 208          if (sigemptyset(&act.sa_mask) < 0)
 209                  i_fatal("sigemptyset(): %m");
 210          if (restart_syscalls) {
 211                  act.sa_flags = SA_RESTART;
 212                  act.sa_handler = SIG_IGN;
 213          } else {
 214                  act.sa_flags = SA_SIGINFO;
 215                  act.sa_sigaction = sig_ignore;
 216          }
 217   
 218          if (sigaction(signo, &act, NULL) < 0)
 219                  i_fatal("sigaction(%d): %m", signo);
 220  }
Show more  




Change Warning 7108.24446 : Unreachable Call

Priority:
State:
Finding:
Owner:
Note: