1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
*** icb/signals.c.orig Wed May 6 18:55:15 1998
--- icb/signals.c Wed May 6 18:55:55 1998
***************
*** 22,35 ****
/* sighandler askquit(), suspend(), icbexit(); */
/* exit on a hangup or terminate signal */
! signal(SIGHUP, icbexit);
! signal(SIGTERM, icbexit);
/* on an interrupt, verify the user wants to quit */
! signal(SIGINT, askquit);
/* suspend on a stop signal */
! signal(SIGTSTP, suspend);
}
--- 22,35 ----
/* sighandler askquit(), suspend(), icbexit(); */
/* exit on a hangup or terminate signal */
! signal(SIGHUP, (void *)icbexit);
! signal(SIGTERM, (void *)icbexit);
/* on an interrupt, verify the user wants to quit */
! signal(SIGINT, (void *)askquit);
/* suspend on a stop signal */
! signal(SIGTSTP, (void *)suspend);
}
***************
*** 45,51 ****
sigsetmask(sigblock(0) &~ mask(SIGTSTP));
kill(0, SIGTSTP);
sigblock(mask(SIGTSTP));
! signal(SIGTSTP, suspend);
icbterm();
continued = 1;
}
--- 45,51 ----
sigsetmask(sigblock(0) &~ mask(SIGTSTP));
kill(0, SIGTSTP);
sigblock(mask(SIGTSTP));
! signal(SIGTSTP, (void *)suspend);
icbterm();
continued = 1;
}
***************
*** 73,79 ****
if (c == 'Y' || c == 'y')
icbexit();
! signal(SIGINT, askquit);
continued = 1;
if (oem)
--- 73,79 ----
if (c == 'Y' || c == 'y')
icbexit();
! signal(SIGINT, (void *)askquit);
continued = 1;
if (oem)
|