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


Ignore:
File:
1 edited

Legend:

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

    r6afc9d7 r445e7c0  
    6161
    6262        fd = open(f, O_RDONLY);
    63         if (fd >= 0) {
     63        if (fd > -1) {
    6464                close(fd);
    6565                return 0;
     
    9797{
    9898        task_id_t tid;
    99         task_wait_t twait;
    10099        task_exit_t texit;
    101100        char *tmp;
     
    113112       
    114113        for (i = 0; i < 3 && files[i] != NULL; i++) {
    115                 if (vfs_fhandle(files[i], &file_handles[i]) == EOK) {
     114                if (fhandle(files[i], &file_handles[i]) == EOK) {
    116115                        file_handles_p[i] = &file_handles[i];
    117116                }
     
    122121        file_handles_p[i] = NULL;
    123122
    124         rc = task_spawnvf(&tid, &twait, tmp, (const char **) argv, file_handles_p);
     123        rc = task_spawnvf(&tid, tmp, (const char **) argv, file_handles_p);
    125124        free(tmp);
    126125
     
    131130        }
    132131       
    133         rc = task_wait(&twait, &texit, &retval);
     132        rc = task_wait(tid, &texit, &retval);
    134133        if (rc != EOK) {
    135134                printf("%s: Failed waiting for command (%s)\n", progname,
Note: See TracChangeset for help on using the changeset viewer.