+Tue Jan 10 19:43:18 1995 Mark Eichin (eichin@cygnus.com)
+
+ * krlogin.c (doit): use exit_handler for signal exits, don't use
+ exit directly.
+ (exit_handler): new function, avoids type collision from misusing
+ exit directly as a signal handler.
+
Tue Jan 10 15:23:31 1995 Richard Basch (probe@tardis)
* configure.in: Streams test needs to include sys/types.h
struct termios deftty;
#endif
-krb5_sigtype exit();
char *getenv();
char *name;
int setsignal(int sig, krb5_sigtype (*act)());
#endif
+/* to allow exits from signal handlers, without conflicting declarations */
+krb5_sigtype exit_handler() {
+ exit(1);
+}
+
+
/*
* The following routine provides compatibility (such as it is)
* between 4.2BSD Suns and others. Suns have only a `ttysize',
(void) signal(SIGINT, SIG_IGN);
#endif
- setsignal(SIGHUP, exit);
- setsignal(SIGQUIT, exit);
+ setsignal(SIGHUP, exit_handler);
+ setsignal(SIGQUIT, exit_handler);
child = fork();
if (child == -1) {