FreeBSD/contrib/amd/amd/amd.c
/*
 * Signal handler:
 * SIGINT - tells amd to do a full shutdown, including unmounting all
 *       filesystem.
 * SIGTERM - tells amd to shutdown now.  Just unmounts the automount nodes.
 */
Signal handler:
SIGINT - tells amd to do a full shutdown, including unmounting all
filesystem.
SIGTERM - tells amd to shutdown now.  Just unmounts the automount nodes.
Signal handler : SIGINT - tells amd to do a full shutdown including unmounting all filesystem . SIGTERM - tells amd to shutdown now . Just unmounts the automount nodes .
static RETSIGTYPE
sigterm(int sig)
{
#ifdef REINSTALL_SIGNAL_HANDLER
  signal(sig, sigterm);
#endif 
  switch (sig) {
  case SIGINT:
    immediate_abort = 15;
    break;
  case SIGTERM:
    immediate_abort = -1;
  default:
    plog(XLOG_WARNING, "WARNING: automounter going down on signal %d", sig);
    break;
  }
  if (select_intr_valid)
    longjmp(select_intr, sig);
}
static RETSIGTYPE sigterm ( int sig ) { #ifdef REINSTALL_SIGNAL_HANDLER signal ( sig , sigterm ) ; #endif switch ( sig ) { case SIGINT : immediate_abort = 15 ; break ; case SIGTERM : immediate_abort = -1 ; default : plog ( XLOG_WARNING , " " , sig ) ; break ; } if ( select_intr_valid ) longjmp ( select_intr , sig ) ; }
Signal handler:
 SIGINT - tells amd to do a full shutdown, including unmounting all
       filesystem.
Signal handler : SIGINT - tells amd to do a full shutdown including unmounting all filesystem .
/* REINSTALL_SIGNAL_HANDLER */ /* fall through... */