diff options
| author | Tom Yu <tlyu@mit.edu> | 1998-07-15 22:44:32 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 1998-07-15 22:44:32 +0000 |
| commit | e1d8f4f918773dcabf59ef09245aa4f6d4aecf47 (patch) | |
| tree | 213da4deab4835c809048cdc68320b1f518906c7 /src | |
| parent | a26777c771d4b0d0fe3f2153c9fb66c54639883a (diff) | |
| download | krb5-e1d8f4f918773dcabf59ef09245aa4f6d4aecf47.tar.gz krb5-e1d8f4f918773dcabf59ef09245aa4f6d4aecf47.tar.xz krb5-e1d8f4f918773dcabf59ef09245aa4f6d4aecf47.zip | |
* 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
Diffstat (limited to 'src')
| -rw-r--r-- | src/kdc/ChangeLog | 10 | ||||
| -rw-r--r-- | src/kdc/configure.in | 1 | ||||
| -rw-r--r-- | 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 <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() 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); |
