+Sat Apr 29 00:24:48 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * adm_network.c (setup_network): Use sigaction() instead of
+ signal() to setup the signal handlers. This means we
+ don't need to worry about System V signal semantics.
+
+Fri Apr 28 21:16:10 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * adm_server.c (kdc_com_err_proc): Free nfmt after done using it.
+
+ * Makefile.in (kadmind): Use $(LD) instead of $(CC) so that we can
+ do purify checking.
+
Thu Apr 27 12:21:38 1995 Mark Eichin <eichin@cygnus.com>
* Makefile.in (kadmind): don't reference K4LIB since we don't set
#endif
int pid, i, j;
+#ifndef OLD_SIGNALS
signal(SIGCHLD, do_child);
+#endif
pid = wait(&status);
if (pid < 0)
krb5_sigtype doexit(), do_child();
struct servent *service_servent;
struct hostent *service_hostent;
-
+ int on = 1;
+#ifndef OLD_SIGNALS
+ struct sigaction new_act;
+
+ new_act.sa_handler = doexit;
+ sigemptyset(&new_act.sa_mask);
+ sigaction(SIGINT, &new_act, 0);
+ sigaction(SIGTERM, &new_act, 0);
+ sigaction(SIGHUP, &new_act, 0);
+ sigaction(SIGQUIT, &new_act, 0);
+ sigaction(SIGALRM, &new_act, 0);
+ new_act.sa_handler = SIG_IGN;
+ sigaction(SIGPIPE, &new_act, 0);
+ new_act.sa_handler = do_child;
+ sigaction(SIGCHLD, &new_act, 0);
+#else
signal(SIGINT, doexit);
signal(SIGTERM, doexit);
signal(SIGHUP, doexit);
signal(SIGPIPE, SIG_IGN); /* get errors on write() */
signal(SIGALRM, doexit);
signal(SIGCHLD, do_child);
+#endif
client_server_info.name_of_service = malloc(768);
if (!client_server_info.name_of_service) {
inet_ntoa( client_server_info.server_name.sin_addr ));
#endif /* DEBUG */
+ if (admin_port && admin_port != htons(ADM5_DEFAULT_PORT)) {
+ (void) setsockopt(client_server_info.server_socket, SOL_SOCKET,
+ SO_REUSEADDR, (char *)&on, sizeof(on));
+ }
+
if (bind(client_server_info.server_socket,
&client_server_info.server_name,
sizeof(client_server_info.server_name)) < 0) {