2001-05-14 12:42:49 -04:00
|
|
|
$OpenBSD: patch-icb_signals_c,v 1.1 2001/05/14 16:42:54 millert Exp $
|
|
|
|
--- icb/signals.c.orig Fri Feb 24 14:20:29 1995
|
|
|
|
+++ icb/signals.c Mon May 14 10:33:04 2001
|
|
|
|
@@ -22,14 +22,14 @@ trapsignals()
|
2000-01-16 04:26:46 -05:00
|
|
|
/* sighandler askquit(), suspend(), icbexit(); */
|
|
|
|
|
|
|
|
/* exit on a hangup or terminate signal */
|
|
|
|
- signal(SIGHUP, icbexit);
|
|
|
|
- signal(SIGTERM, icbexit);
|
|
|
|
+ signal(SIGHUP, (void *)icbexit);
|
|
|
|
+ signal(SIGTERM, (void *)icbexit);
|
|
|
|
|
|
|
|
/* on an interrupt, verify the user wants to quit */
|
|
|
|
- signal(SIGINT, askquit);
|
|
|
|
+ signal(SIGINT, (void *)askquit);
|
|
|
|
|
|
|
|
/* suspend on a stop signal */
|
|
|
|
- signal(SIGTSTP, suspend);
|
|
|
|
+ signal(SIGTSTP, (void *)suspend);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-05-14 12:42:49 -04:00
|
|
|
@@ -45,7 +45,7 @@ suspend()
|
2000-01-16 04:26:46 -05:00
|
|
|
sigsetmask(sigblock(0) &~ mask(SIGTSTP));
|
|
|
|
kill(0, SIGTSTP);
|
|
|
|
sigblock(mask(SIGTSTP));
|
|
|
|
- signal(SIGTSTP, suspend);
|
|
|
|
+ signal(SIGTSTP, (void *)suspend);
|
|
|
|
icbterm();
|
|
|
|
continued = 1;
|
|
|
|
}
|
2001-05-14 12:42:49 -04:00
|
|
|
@@ -73,7 +73,7 @@ askquit()
|
2000-01-16 04:26:46 -05:00
|
|
|
if (c == 'Y' || c == 'y')
|
|
|
|
icbexit();
|
|
|
|
|
|
|
|
- signal(SIGINT, askquit);
|
|
|
|
+ signal(SIGINT, (void *)askquit);
|
|
|
|
continued = 1;
|
|
|
|
|
|
|
|
if (oem)
|