Even more debug info for waitpid

This commit is contained in:
Jeremiah Orians 2022-01-24 18:45:13 -05:00
parent 11c45ed475
commit abdbf4cf3a
No known key found for this signature in database
GPG Key ID: 6B3A3F198708F894
1 changed files with 9 additions and 0 deletions

View File

@ -152,6 +152,15 @@ int what_exit(char* program, int status)
* If bit 0x80 of w_status is set, a core dump was produced. *
***********************************************************************************/
if(DEBUG_LEVEL > 6)
{
fputs("in what_exit with char* program of: ", stderr);
fputs(program, stderr);
fputs("\nAnd int status of: 0x", stderr);
fputs(int2str(status, 16, FALSE), stderr);
fputc('\n', stderr);
}
int WIFEXITED = !(status & 0x7F);
int WEXITSTATUS = (status & 0xFF00) >> 8;
int WTERMSIG = status & 0x7F;