Changeset 7171760 in mainline for uspace/app/bdsh/exec.c
- Timestamp:
- 2011-08-18T12:05:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b33ec43
- Parents:
- 866e627
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
r866e627 r7171760 100 100 char *tmp; 101 101 int rc, retval, i; 102 fdi_node_t file_nodes[3];103 fdi_node_t *file_nodes_p[4];102 int file_handles[3]; 103 int *file_handles_p[4]; 104 104 FILE *files[3]; 105 105 … … 112 112 113 113 for (i = 0; i < 3 && files[i] != NULL; i++) { 114 if (f node(files[i], &file_nodes[i]) == EOK) {115 file_ nodes_p[i] = &file_nodes[i];114 if (fhandle(files[i], &file_handles[i]) == EOK) { 115 file_handles_p[i] = &file_handles[i]; 116 116 } 117 117 else { 118 file_ nodes_p[i] = NULL;118 file_handles_p[i] = NULL; 119 119 } 120 120 } 121 file_ nodes_p[i] = NULL;121 file_handles_p[i] = NULL; 122 122 123 rc = task_spawnvf(&tid, tmp, (const char **) argv, file_ nodes_p);123 rc = task_spawnvf(&tid, tmp, (const char **) argv, file_handles_p); 124 124 free(tmp); 125 125
Note:
See TracChangeset
for help on using the changeset viewer.