summaryrefslogtreecommitdiff
path: root/games/phantasia/main.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-05-06 19:48:48 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-05-06 19:48:48 +0000
commitdc923c1dc36e9df9e9f50572d6db872bd233dd29 (patch)
treedf9fb7fa4aa90d236b11367f33d0a055d1ff0ffa /games/phantasia/main.c
parentaed3b72ab961760e41e90038a69f7be86e73fa81 (diff)
do not install a SIGSEGV handler
Diffstat (limited to 'games/phantasia/main.c')
-rw-r--r--games/phantasia/main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/games/phantasia/main.c b/games/phantasia/main.c
index 4549f0fe5cf..6a718d03fbf 100644
--- a/games/phantasia/main.c
+++ b/games/phantasia/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.8 2001/02/04 02:51:24 pjanzen Exp $ */
+/* $OpenBSD: main.c,v 1.9 2002/05/06 19:48:47 millert Exp $ */
/* $NetBSD: main.c,v 1.3 1995/04/24 12:24:37 cgd Exp $ */
/*
@@ -1180,7 +1180,9 @@ playinit()
sigset(SIGEMT, ill_sig);
sigset(SIGFPE, ill_sig);
sigset(SIGBUS, ill_sig);
+#ifdef SIGSEGV_CHECK
sigset(SIGSEGV, ill_sig);
+#endif
sigset(SIGSYS, ill_sig);
sigset(SIGPIPE, ill_sig);
#endif
@@ -1198,7 +1200,9 @@ playinit()
signal(SIGEMT, ill_sig);
signal(SIGFPE, ill_sig);
signal(SIGBUS, ill_sig);
+#ifdef SIGSEGV_CHECK
signal(SIGSEGV, ill_sig);
+#endif
signal(SIGSYS, ill_sig);
signal(SIGPIPE, ill_sig);
#endif
@@ -1213,7 +1217,9 @@ playinit()
signal(SIGEMT, ill_sig);
signal(SIGFPE, ill_sig);
signal(SIGBUS, ill_sig);
+#ifdef SIGSEGV_CHECK
signal(SIGSEGV, ill_sig);
+#endif
signal(SIGSYS, ill_sig);
signal(SIGPIPE, ill_sig);
#endif
@@ -1228,7 +1234,9 @@ playinit()
signal(SIGEMT, ill_sig);
signal(SIGFPE, ill_sig);
signal(SIGBUS, ill_sig);
+#ifdef SIGSEGV_CHECK
signal(SIGSEGV, ill_sig);
+#endif
signal(SIGSYS, ill_sig);
signal(SIGPIPE, ill_sig);
#endif