cvmfs/monitor.cc
static SigactionMap SetSignalHandlers(const SigactionMap &signal_handlers) {
  SigactionMap old_signal_handlers;
  SigactionMap::const_iterator i     = signal_handlers.begin();
  SigactionMap::const_iterator iend  = signal_handlers.end();
  for (; i != iend; ++i) {
    struct sigaction old_signal_handler;
    if (sigaction(i->first, &i->second, &old_signal_handler) != 0) {
      abort();
    }
    old_signal_handlers[i->first] = old_signal_handler;
  }

  return old_signal_handlers;
}
/**
 * Sets the signal handlers of the current process according to the ones
 * defined in the given SigactionMap.
 *
 * @param signal_handlers  a map of SIGNAL -> struct sigaction
 * @return                 a SigactionMap containing the old handlers
 */
Sets the signal handlers of the current process according to the ones
defined in the given SigactionMap.

@param signal_handlers  a map of SIGNAL -> struct sigaction
@return                 a SigactionMap containing the old handlers
Sets the signal handlers of the current process according to the ones defined in the given SigactionMap . @param signal_handlers a map of SIGNAL - > struct sigaction @return a SigactionMap containing the old handlers
static SigactionMap SetSignalHandlers(const SigactionMap &signal_handlers) {
  SigactionMap old_signal_handlers;
  SigactionMap::const_iterator i     = signal_handlers.begin();
  SigactionMap::const_iterator iend  = signal_handlers.end();
  for (; i != iend; ++i) {
    struct sigaction old_signal_handler;
    if (sigaction(i->first, &i->second, &old_signal_handler) != 0) {
      abort();
    }
    old_signal_handlers[i->first] = old_signal_handler;
  }
  return old_signal_handlers;
}
static SigactionMap SetSignalHandlers ( const SigactionMap & signal_handlers ) { SigactionMap old_signal_handlers ; SigactionMap :: const_iterator i = signal_handlers . begin ( ) ; SigactionMap :: const_iterator iend = signal_handlers . end ( ) ; for ( ; i != iend ; ++ i ) { struct sigaction old_signal_handler ; if ( sigaction ( i -> first , & i -> second , & old_signal_handler ) != 0 ) { abort ( ) ; } old_signal_handlers [ i -> first ] = old_signal_handler ; } return old_signal_handlers ; }
Sets the signal handlers of the current process according to the ones
 defined in the given SigactionMap.
Sets the signal handlers of the current process according to the ones defined in the given SigactionMap .