Is it possible to tell whether a process has crashed with ES or to get a notification when a crash happens?
I was looking at the stat
field of es_event_exit_t
in combination with the macros like WTERMSIG
from wait (2), but that probably wouldn't be enough? A process could be terminated by a signal without a crash (e.g. by sending SIGSEGV
via terminal).
I ultimately want to analyze a crash report as soon as the crash report is available. Currently that's done by subscribing to ES_EVENT_TYPE_NOTIFY_CREATE
but this approach comes with a few drawbacks.