Changeset c7dc8ad in mainline for uspace/app/getvc/getvc.c
- Timestamp:
- 2009-10-30T12:13:48Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e6b73ad0
- Parents:
- 15b8e495
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/getvc/getvc.c
r15b8e495 rc7dc8ad 71 71 static task_id_t spawn(char *fname) 72 72 { 73 char *arg v[2];73 char *args[2]; 74 74 75 arg v[0] = fname;76 arg v[1] = NULL;75 args[0] = fname; 76 args[1] = NULL; 77 77 78 task_id_t id = task_spawn(fname, arg v);78 task_id_t id = task_spawn(fname, args); 79 79 80 80 if (id == 0) … … 113 113 task_id_t id = spawn(argv[2]); 114 114 115 task_exit_t texit; 116 int retval; 117 task_wait(id, &texit, &retval); 115 if (id != 0) { 116 task_exit_t texit; 117 int retval; 118 task_wait(id, &texit, &retval); 119 120 return 0; 121 } 118 122 119 return 0;123 return -5; 120 124 } 121 125
Note:
See TracChangeset
for help on using the changeset viewer.