summaryrefslogtreecommitdiff
path: root/net/icb/files/patch-o-ai
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1998-05-25 23:23:36 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1998-05-25 23:23:36 +0000
commit721685a75951a3194d0d12e4096185dbd76b379c (patch)
tree85d96e92468c3e284d56a6b0bdcec9e88832ddb1 /net/icb/files/patch-o-ai
parentMASTER_SITE_SUBDIR should have neither a leading nor a trailing slash. (diff)
Internet CB - a chat client
Notes
Notes: svn path=/head/; revision=11144
Diffstat (limited to 'net/icb/files/patch-o-ai')
-rw-r--r--net/icb/files/patch-o-ai67
1 files changed, 67 insertions, 0 deletions
diff --git a/net/icb/files/patch-o-ai b/net/icb/files/patch-o-ai
new file mode 100644
index 000000000000..1ac66091909b
--- /dev/null
+++ b/net/icb/files/patch-o-ai
@@ -0,0 +1,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)