Skip to content

Commit

Permalink
CID 1400042: Emit an error message if we can’t setup fault handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 30, 2017
1 parent 4466459 commit b363cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/radiusd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b363cfe

Please sign in to comment.