From: Arran Cudbard-Bell Date: Sat, 27 May 2017 18:53:34 +0000 (-0400) Subject: CID 1400042: Emit an error message if we can’t setup fault handlers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b363cfe50dea82f9445aaedb5897d102fbd4eef1;p=thirdparty%2Ffreeradius-server.git CID 1400042: Emit an error message if we can’t setup fault handlers --- diff --git a/src/main/radiusd.c b/src/main/radiusd.c index 67e7f2370a2..30ca3610349 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -196,7 +196,9 @@ int main(int argc, char *argv[]) /* * Set the panic action and enable other debugging facilities */ - fr_fault_setup(getenv("PANIC_ACTION"), argv[0]); + if (fr_fault_setup(getenv("PANIC_ACTION"), argv[0]) < 0) { + fr_perror("Failed installing fault handlers... continuing"); + } /* Process the options. */ while ((argval = getopt(argc, argv, "Cd:D:fhi:l:L:Mn:p:PstTvxX")) != EOF) {