]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CID 1400042: Emit an error message if we can’t setup fault handlers
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 27 May 2017 18:53:34 +0000 (14:53 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 May 2017 00:48:01 +0000 (20:48 -0400)
src/main/radiusd.c

index 67e7f2370a214aa7054fcc5c0b76682c5698f2d7..30ca36103492627e2cfaea8ae9759e4a9ad0a277 100644 (file)
@@ -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) {