Changes in uspace/app/bdsh/exec.c [445e7c0:6afc9d7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
r445e7c0 r6afc9d7 61 61 62 62 fd = open(f, O_RDONLY); 63 if (fd > -1) {63 if (fd >= 0) { 64 64 close(fd); 65 65 return 0; … … 97 97 { 98 98 task_id_t tid; 99 task_wait_t twait; 99 100 task_exit_t texit; 100 101 char *tmp; … … 112 113 113 114 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) { 115 116 file_handles_p[i] = &file_handles[i]; 116 117 } … … 121 122 file_handles_p[i] = NULL; 122 123 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); 124 125 free(tmp); 125 126 … … 130 131 } 131 132 132 rc = task_wait( tid, &texit, &retval);133 rc = task_wait(&twait, &texit, &retval); 133 134 if (rc != EOK) { 134 135 printf("%s: Failed waiting for command (%s)\n", progname,
Note:
See TracChangeset
for help on using the changeset viewer.