WSTOPSIG
WSTOPSIG is a macro defined in the POSIX C standard library header sys/wait.h. It is used to obtain the signal number that caused a child process to stop, as reported by wait or waitpid when the child is in a stopped state.
Use and behavior: WSTOPSIG(status) should be used only when WIFSTOPPED(status) returns true. In that case, WSTOPSIG(status)
Typical context: A parent process may invoke waitpid with options such as WUNTRACED to be notified when
Portability: WSTOPSIG is part of the POSIX wait/waitpid interface and is supported on POSIX-compatible systems, including
See also: WIFSTOPPED, WIFEXITED, WIFSIGNALED, WCONTINUED, WEXITSTATUS, WTERMSIG.