From e1d8f4f918773dcabf59ef09245aa4f6d4aecf47 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 15 Jul 1998 22:44:32 +0000 Subject: [PATCH] * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10648 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 10 ++++++++++ src/kdc/configure.in | 1 + src/kdc/main.c | 6 +----- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 1f6ebc26f..6b9617d4e 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,13 @@ +Wed Jul 15 18:32:07 1998 Tom Yu + + * 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 * main.c: Added a call to signal() in request_hup() diff --git a/src/kdc/configure.in b/src/kdc/configure.in index c9b5ba3e2..23a068d05 100644 --- a/src/kdc/configure.in +++ b/src/kdc/configure.in @@ -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. diff --git a/src/kdc/main.c b/src/kdc/main.c index a56681637..4524c00f4 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -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); -- 2.26.2