From: Alan T. DeKok Date: Tue, 5 May 2009 12:51:12 +0000 (+0200) Subject: Exit with error on more signals X-Git-Tag: release_2_1_7~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a104094e9dd77518d23f87b1e7ee4d1fb30f646b;p=thirdparty%2Ffreeradius-server.git Exit with error on more signals --- diff --git a/src/main/radiusd.c b/src/main/radiusd.c index 46597f5c4da..d499a0a2d7b 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -245,7 +245,7 @@ int main(int argc, char *argv[]) if (debug_flag) { radlog(L_INFO, "%s", radiusd_version); - radlog(L_INFO, "Copyright (C) 1999-2008 The FreeRADIUS server project and contributors.\n"); + radlog(L_INFO, "Copyright (C) 1999-2009 The FreeRADIUS server project and contributors.\n"); radlog(L_INFO, "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n"); radlog(L_INFO, "PARTICULAR PURPOSE.\n"); radlog(L_INFO, "You may redistribute copies of FreeRADIUS under the terms of the\n"); @@ -483,13 +483,6 @@ static void NEVER_RETURNS usage(int status) static void sig_fatal(int sig) { switch(sig) { - case SIGSEGV: - /* - * We can't really do anything - * intelligent here so just die - */ - _exit(1); - case SIGTERM: radius_signal_self(RADIUS_SIGNAL_SELF_TERM); break; @@ -505,8 +498,7 @@ static void sig_fatal(int sig) /* FALL-THROUGH */ default: - radius_signal_self(RADIUS_SIGNAL_SELF_EXIT); - break; + _exit(sig); } }