/*

$Id: signal.c,v 1.1 1995/05/17 08:15:07 mwhitson Exp $

*/

#include "extern.h"
#include "proto.h"
#include <signal.h>
#include <sys/wait.h>

/*** SIGNAL HANDLERS ***/

/*
 *  print a notice and exit
 */
void sig_exit(sig)
int sig;
{
  SYSLOG(LOG_NOTICE,"caught signal %d, exiting", sig);
  exit(10);
}

/*
 *  install signal handlers
 */
void deal_with_signals(void)
{
  signal(SIGHUP, sig_exit);
  signal(SIGINT, sig_exit);
}

