Add ABORT_ON_ASSERT flag to CONFIG_SITE

This flag causes EPICS to call abort() on assertion failures rather than
suspend the executing thread. With the epicsThreadSuspendSelf() behavior,
an IOC can end up in a difficult to detect error state where one or more
threads has essentially crashed due to an assertion failure.

This also matches the C behavior of assert(3)
This commit is contained in:
Jeremy Lorelli
2024-11-12 17:13:16 -08:00
committed by Michael Davidsaver
parent 0186836449
commit 721e9cc3a7
3 changed files with 15 additions and 2 deletions

View File

@ -92,3 +92,6 @@ EPICS_IOC_LOG_FILE_NAME=
EPICS_IOC_LOG_FILE_COMMAND=
EPICS_IOC_LOG_FILE_LIMIT=1000000
# Set to 'YES' to call abort() rather than suspend the current thread
# when an assert() fails
EPICS_ABORT_ON_ASSERT=NO