Changeset 1c635d6 in mainline for uspace/app/redir/redir.c
- Timestamp:
- 2014-08-26T15:12:12Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 613d644
- Parents:
- df7f5cea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/redir/redir.c
rdf7f5cea r1c635d6 75 75 } 76 76 77 static task_id_t spawn( int argc, char *argv[])77 static task_id_t spawn(task_wait_t *wait, int argc, char *argv[]) 78 78 { 79 79 const char **args; … … 93 93 args[argc] = NULL; 94 94 95 rc = task_spawnv(&id, argv[0], args);95 rc = task_spawnv(&id, wait, argv[0], args); 96 96 97 97 free(args); … … 152 152 */ 153 153 setvbuf(stdout, NULL, _IOLBF, BUFSIZ); 154 155 task_id_t id = spawn(argc - i, argv + i); 154 155 task_wait_t wait; 156 task_id_t id = spawn(&wait, argc - i, argv + i); 156 157 157 158 if (id != 0) { 158 159 task_exit_t texit; 159 160 int retval; 160 task_wait( id, &texit, &retval);161 task_wait(&wait, &texit, &retval); 161 162 162 163 return retval;
Note:
See TracChangeset
for help on using the changeset viewer.