Changeset adb49f58 in mainline for uspace/app
- Timestamp:
- 2009-07-06T20:16:15Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 95bc57c
- Parents:
- 0315679
- Location:
- uspace/app
- Files:
-
- 2 edited
-
bdsh/exec.c (modified) (2 diffs)
-
getvc/getvc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
r0315679 radb49f58 113 113 { 114 114 task_id_t tid; 115 task_exit_t texit; 115 116 char *tmp; 116 117 int retval; … … 127 128 } 128 129 129 task_wait(tid, &retval); 130 if (retval != 0) 130 task_wait(tid, &texit, &retval); 131 if (texit != TASK_EXIT_NORMAL) { 132 printf("Command failed (unexpectedly terminated).\n"); 133 } else if (retval != 0) { 131 134 printf("Command failed (return value %d).\n", retval); 135 } 132 136 133 137 return 0; -
uspace/app/getvc/getvc.c
r0315679 radb49f58 74 74 int main(int argc, char *argv[]) 75 75 { 76 task_exit_t texit; 76 77 int retval; 77 78 … … 100 101 version_print(argv[1]); 101 102 task_id_t id = spawn(argv[2]); 102 task_wait(id, & retval);103 task_wait(id, &texit, &retval); 103 104 104 105 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.
