Changeset 7114d83 in mainline for uspace/app
- Timestamp:
- 2009-07-06T16:02:27Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5d96851b
- Parents:
- d68e4d5
- 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
rd68e4d5 r7114d83 114 114 task_id_t tid; 115 115 char *tmp; 116 int retval; 116 117 117 118 tmp = str_dup(find_command(cmd)); … … 126 127 } 127 128 128 task_wait(tid); 129 task_wait(tid, &retval); 130 if (retval != 0) 131 printf("Command failed (return value %d).\n", retval); 132 129 133 return 0; 130 134 } -
uspace/app/getvc/getvc.c
rd68e4d5 r7114d83 74 74 int main(int argc, char *argv[]) 75 75 { 76 int retval; 77 76 78 if (argc < 3) { 77 79 usage(); … … 98 100 version_print(argv[1]); 99 101 task_id_t id = spawn(argv[2]); 100 task_wait(id );102 task_wait(id, &retval); 101 103 102 104 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.
