* configure.in: Add CHECK_SIGNALS so that POSIX_SIGNALS gets
authorTom Yu <tlyu@mit.edu>
Wed, 15 Jul 1998 22:44:32 +0000 (22:44 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 15 Jul 1998 22:44:32 +0000 (22:44 +0000)
defined.

* main.c (request_hup): Remove call to signal, as this isn't
needed on BSD-ish systems and for sysV-ish systems we use
sigaction anyway.
(setup_signal_handlers): Fix typo.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10648 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/configure.in
src/kdc/main.c

index 1f6ebc26f440847defe1a5d9edc23d89617ebed8..6b9617d4eceb357bb1ca42b23ec07b31008b6ae3 100644 (file)
@@ -1,3 +1,13 @@
+Wed Jul 15 18:32:07 1998  Tom Yu  <tlyu@mit.edu>
+
+       * configure.in: Add CHECK_SIGNALS so that POSIX_SIGNALS gets
+       defined.
+
+       * main.c (request_hup): Remove call to signal, as this isn't
+       needed on BSD-ish systems and for sysV-ish systems we use
+       sigaction anyway.
+       (setup_signal_handlers): Fix typo.
+
 Sat Jul 11 01:38:05 1998  Geoffrey King  <gjking@mit.edu>
 
        * main.c: Added a call to signal() in request_hup()
index c9b5ba3e23408600007d56923f805f5c878b68ad..23a068d054ac3ba94f842df1d266ea57b64a4e37 100644 (file)
@@ -5,6 +5,7 @@ AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS)))
 AC_CHECK_HEADERS(syslog.h stdarg.h sys/select.h)
 AC_CHECK_FUNCS(openlog syslog closelog strftime vsprintf)
 AC_PROG_AWK
+CHECK_SIGNALS
 HAS_ANSI_VOLATILE
 dnl
 dnl --with-vague-errors disables useful error messages.
index a56681637b6fdd11b8f69cbd79c8570e76528d54..4524c00f4ec87fb3f62d0ff1472cf5d1c42ae5df 100644 (file)
@@ -575,10 +575,6 @@ request_hup(signo)
     int signo;
 {
     signal_requests_hup = 1;
-#ifndef POSIX_SIGNALS
-    signal(SIGHUP, request_hup);    /* System V's signal() requires
-                                      resetting each time */
-#endif
 
 #ifdef POSIX_SIGTYPE
     return;
@@ -592,7 +588,7 @@ setup_signal_handlers()
 {
 #ifdef POSIX_SIGNALS
     (void) sigemptyset(&s_action.sa_mask);
-    s_action.saflags = 0;
+    s_action.sa_flags = 0;
     s_action.sa_handler = request_exit;
     (void) sigaction(SIGINT, &s_action, (struct sigaction *) NULL);
     (void) sigaction(SIGTERM, &s_action, (struct sigaction *) NULL);