WTERMSIG
WTERMSIG is a macro defined in the system header associated with process status information, used when inspecting the status value returned by wait or waitpid. It yields the termination signal number that caused a child process to terminate, and its result is meaningful only when WIFSIGNALED(status) is true.
In typical usage, a program calls wait or waitpid to obtain a status integer. The macro WIFSIGNALED(status)
WTERMSIG is used in conjunction with other macros that interpret the status value, such as WIFEXITED (normal
Portability and headers: WTERMSIG is defined by POSIX and is available on systems that conform to POSIX
Notes: WTERMSIG reflects the signal responsible for termination but does not by itself indicate whether a core