Changes in uspace/app/bdsh/exec.c [445e7c0:6afc9d7] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/exec.c

    r445e7c0 r6afc9d7  
    6161
    6262        fd = open(f, O_RDONLY);
    63         if (fd > -1) {
     63        if (fd >= 0) {
    6464                close(fd);
    6565                return 0;
     
    9797{
    9898        task_id_t tid;
     99        task_wait_t twait;
    99100        task_exit_t texit;
    100101        char *tmp;
     
    112113       
    113114        for (i = 0; i < 3 && files[i] != NULL; i++) {
    114                 if (fhandle(files[i], &file_handles[i]) == EOK) {
     115                if (vfs_fhandle(files[i], &file_handles[i]) == EOK) {
    115116                        file_handles_p[i] = &file_handles[i];
    116117                }
     
    121122        file_handles_p[i] = NULL;
    122123
    123         rc = task_spawnvf(&tid, tmp, (const char **) argv, file_handles_p);
     124        rc = task_spawnvf(&tid, &twait, tmp, (const char **) argv, file_handles_p);
    124125        free(tmp);
    125126
     
    130131        }
    131132       
    132         rc = task_wait(tid, &texit, &retval);
     133        rc = task_wait(&twait, &texit, &retval);
    133134        if (rc != EOK) {
    134135                printf("%s: Failed waiting for command (%s)\n", progname,
Note: See TracChangeset for help on using the changeset viewer.