As discused over gitter, WIFSIGNALED macro must be checked before one uses the WTERMSIG macro. This change reflects that necessity and adds a final else clause which will panic if no status code could be determined.
The idea here (currently, though it could be changed) is to panic when an unknown status code is encountered, as well as comply to the man 2 waitpid documentation.
As discused over gitter,
WIFSIGNALED
macro must be checked before one uses theWTERMSIG
macro. This change reflects that necessity and adds a final else clause which will panic if no status code could be determined.Also relevant is information gathered by @sogaiu in question-about-WTERMSIG-in-janet.md.
The idea here (currently, though it could be changed) is to panic when an unknown status code is encountered, as well as comply to the
man 2 waitpid
documentation.