Changeset 55fe220 in mainline for uspace/app/getterm/getterm.c
- Timestamp:
- 2019-08-07T04:56:41Z (6 years ago)
- Children:
- d4ec49e
- Parents:
- 5044114
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-10-12 22:21:42)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 04:56:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/getterm/getterm.c
r5044114 r55fe220 169 169 task_id_t id; 170 170 task_wait_t twait; 171 task_wait_set(&twait, TASK_WAIT_EXIT); 172 errno_t rc = task_spawnv(&id, &twait, cmd, (const char *const *) args); 171 173 172 errno_t rc = task_spawnv(&id, &twait, cmd, (const char *const *) args);173 174 if (rc != EOK) { 174 175 printf("%s: Error spawning %s (%s)\n", APP_NAME, cmd, … … 176 177 return rc; 177 178 } 178 179 task_exit_t texit; 180 int retval; 181 rc = task_wait(&twait, &texit, &retval); 179 180 rc = task_wait(&twait, NULL, NULL); 182 181 if (rc != EOK) { 183 182 printf("%s: Error waiting for %s (%s)\n", APP_NAME, cmd,
Note:
See TracChangeset
for help on using the changeset viewer.