Changes in tests/meta/fork+exec.hfa [481f882:68456fa]
- File:
-
- 1 edited
-
tests/meta/fork+exec.hfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/meta/fork+exec.hfa
r481f882 r68456fa 28 28 } 29 29 30 static int true_main(const char * path, char * env[]);30 static int true_main(const char * exec, char * env[]); 31 31 32 32 static int do_wait(pid_t pid) { … … 55 55 static void print_status(int wstatus) { 56 56 printf("Child status:\n"); 57 printf("IFEXITED : %d, ", WIFEXITED(wstatus)); 58 printf("EXITSTATUS : %d, ", WEXITSTATUS(wstatus)); 59 printf("IFSIGNALED : %d, ", WIFSIGNALED(wstatus)); 60 printf("TERMSIG : %d, ", WTERMSIG(wstatus)); 61 printf("COREDUMP : %d, ", WCOREDUMP(wstatus)); 62 printf("IFSTOPPED : %d, ", WIFSTOPPED(wstatus)); 63 printf("STOPSIG : %d, ", WSTOPSIG(wstatus)); 64 printf("IFCONTINUED: %d", WIFCONTINUED(wstatus)); 65 printf("\n"); 66 printf("\n"); 57 printf(" WIFEXITED : %d\n", WIFEXITED(wstatus)); 58 printf(" WEXITSTATUS : %d\n", WEXITSTATUS(wstatus)); 59 printf(" WIFSIGNALED : %d\n", WIFSIGNALED(wstatus)); 60 printf(" WTERMSIG : %d\n", WTERMSIG(wstatus)); 61 printf(" WCOREDUMP : %d\n", WCOREDUMP(wstatus)); 62 printf(" WIFSTOPPED : %d\n", WIFSTOPPED(wstatus)); 63 printf(" WSTOPSIG : %d\n", WSTOPSIG(wstatus)); 64 printf(" WIFCONTINUED: %d\n", WIFCONTINUED(wstatus)); 67 65 } 68 66
Note:
See TracChangeset
for help on using the changeset viewer.