Changeset bb9ec2d in mainline for uspace/app/bdsh/exec.c
- Timestamp:
- 2017-03-07T20:47:35Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- a737667e
- Parents:
- e796dc8
- git-author:
- Jiri Zarevucky <zarevucky.jiri@…> (2017-03-07 20:47:35)
- git-committer:
- Jakub Jermar <jakub@…> (2017-03-07 20:47:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
re796dc8 rbb9ec2d 101 101 char *tmp; 102 102 int rc, retval, i; 103 int file_handles[3]; 104 int *file_handles_p[4]; 103 int file_handles[3] = { -1, -1, -1 }; 105 104 FILE *files[3]; 106 105 … … 113 112 114 113 for (i = 0; i < 3 && files[i] != NULL; i++) { 115 if (vfs_fhandle(files[i], &file_handles[i]) == EOK) { 116 file_handles_p[i] = &file_handles[i]; 117 } 118 else { 119 file_handles_p[i] = NULL; 120 } 114 vfs_fhandle(files[i], &file_handles[i]); 121 115 } 122 file_handles_p[i] = NULL;123 116 124 rc = task_spawnvf(&tid, &twait, tmp, (const char **) argv, file_handles_p); 117 rc = task_spawnvf(&tid, &twait, tmp, (const char **) argv, 118 file_handles[0], file_handles[1], file_handles[2]); 125 119 free(tmp); 126 120
Note:
See TracChangeset
for help on using the changeset viewer.