WCOREDUMPstatus
WCOREDUMPstatus is a term used to describe the interpretation of a process’s termination status with respect to core dumps in Unix-like systems. It centers on the WCOREDUMP macro, defined in sys/wait.h, which tests whether the status value returned by wait or waitpid indicates that a core file was created. Together with other status macros, WCOREDUMPstatus helps determine not only that a process ended abnormally, but whether a core dump was produced for debugging.
How it is used: after a waitpid call returns a status, the macro WIFSIGNALED(status) checks if the
Implementation notes: WCOREDUMP is portable across many Unix-like systems that provide the standard wait status macros,
- waitpid
- WTERMSIG