Changeset 55fe220 in mainline for uspace/app/getterm/getterm.c


Ignore:
Timestamp:
2019-08-07T04:56:41Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
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)
Message:

taskman: Modify existing callers of task_wait API
Conflicts:

uspace/app/bdsh/exec.c
uspace/app/getterm/getterm.c
uspace/app/sbi/src/os/helenos.c
uspace/app/vlaunch/vlaunch.c
uspace/lib/pcut/src/os/helenos.c
uspace/srv/hid/remcons/remcons.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/getterm/getterm.c

    r5044114 r55fe220  
    169169        task_id_t id;
    170170        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);
    171173
    172         errno_t rc = task_spawnv(&id, &twait, cmd, (const char *const *) args);
    173174        if (rc != EOK) {
    174175                printf("%s: Error spawning %s (%s)\n", APP_NAME, cmd,
     
    176177                return rc;
    177178        }
    178 
    179         task_exit_t texit;
    180         int retval;
    181         rc = task_wait(&twait, &texit, &retval);
     179       
     180        rc = task_wait(&twait, NULL, NULL);
    182181        if (rc != EOK) {
    183182                printf("%s: Error waiting for %s (%s)\n", APP_NAME, cmd,
Note: See TracChangeset for help on using the changeset viewer.