diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-06 19:48:48 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-06 19:48:48 +0000 |
commit | dc923c1dc36e9df9e9f50572d6db872bd233dd29 (patch) | |
tree | df9fb7fa4aa90d236b11367f33d0a055d1ff0ffa /usr.bin | |
parent | aed3b72ab961760e41e90038a69f7be86e73fa81 (diff) |
do not install a SIGSEGV handler
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rdist/common.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/rdist/common.c b/usr.bin/rdist/common.c index b42e8533b41..b5d378b0eaa 100644 --- a/usr.bin/rdist/common.c +++ b/usr.bin/rdist/common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: common.c,v 1.12 2001/11/19 19:02:15 mpech Exp $ */ +/* $OpenBSD: common.c,v 1.13 2002/05/06 19:48:14 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -39,7 +39,7 @@ static char RCSid[] = "$From: common.c,v 6.82 1998/03/23 23:27:33 michaelc Exp $"; #else static char RCSid[] = -"$OpenBSD: common.c,v 1.12 2001/11/19 19:02:15 mpech Exp $"; +"$OpenBSD: common.c,v 1.13 2002/05/06 19:48:14 millert Exp $"; #endif static char sccsid[] = "@(#)common.c"; @@ -135,8 +135,10 @@ extern int init(argc, argv, envp) int i; char *cp; +#ifdef SIGSEGV_CHECK if (!isserver) (void) signal(SIGSEGV, sighandler); +#endif setprogname(argv); @@ -230,6 +232,7 @@ extern void lostconn() finish(); } +#ifdef SIGSEGV_CHECK /* * Do a core dump */ @@ -242,6 +245,7 @@ extern void coredump() /*NOTREACHED*/ fatalerr("Abort failed - no core dump. Exiting..."); } +#endif /* * General signal handler @@ -269,9 +273,11 @@ extern void sighandler(sig) debug = !debug; break; +#ifdef SIGSEGV_CHECK case SIGSEGV: coredump(); break; +#endif case SIGHUP: case SIGINT: |