a sigpipe would result. (during dejagnu tests)
Use exit instead of return from main as may be on the interrupt stack at the
time.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5911
dc483132-0cff-0310-8789-
dd5450dbe970
+Sun May 28 15:58:15 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * srv_main.c (main): Use exit instead of return from
+ main. Otherwise may return to a signal interrupt on
+ shutdown.
+ On shutdown - do not output message as stdout may
+ be closed on receivers end.
Fri May 26 17:50:13 EDT 1995 Paul Park (pjpark@mit.edu)
* Makefile.in - Add KDBLIB to dependency list.
}
else {
/* Received an unhandled signal */
- com_err(programname, 0, unh_signal_fmt, signal_number);
+#ifndef DEBUG
+ syslog(LOG_AUTH|LOG_INFO, unh_signal_fmt, signal_number);
+#endif
}
/* Now clean up after ourselves */
acl_finish(kcontext, debug_level);
key_finish(kcontext, debug_level);
krb5_xfree(kcontext);
- return(error);
+ exit(error);
}