Skip to content

[Common] Call abort() instead of exit() in die()

Maxim Onciul requested to merge call-abort-in-die into master

Calling abort() has multiple advantages. First, it better matches the semantic of DIE(_MSG) as it signals an abnormal process termination, whereas exit() is a normal process termination (even though potentially with an error exit code). Secondly, abort() throws SIGABRT, which in turn triggers a coredump, hence the program's state can be inspected afterwards.

Merge request reports

Loading