WIFSIGNALED
WIFSIGNALED is a macro used in POSIX-compliant systems to analyze the termination status of a child process as reported by wait, waitpid, or waitid. It evaluates the status value returned by these wait system calls and indicates whether the child process ended because it received an uncaught signal.
When WIFSIGNALED(status) is true, the child process did not exit normally but was terminated by a signal.
WIFSIGNALED is one of several macros used to interpret wait status values. Others include WIFEXITED, which
Example usage in C after a wait call:
// handle termination by signal sig
}
Portability and scope: WIFSIGNALED and related macros are defined by the POSIX standard and are available on
---