Changeset 8e7c9fe in mainline for uspace/app/bdsh
- Timestamp:
- 2014-09-12T03:45:25Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c53b58e
- Parents:
- 3eb0c85 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/app/bdsh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/compl.c
r3eb0c85 r8e7c9fe 209 209 *cstart += rpath_sep + 1 - prefix; 210 210 free(prefix); 211 prefix = NULL; 211 212 212 213 cs->path_list = malloc(sizeof(char *) * 2); … … 252 253 } 253 254 254 if ( cs != NULL && cs->prefix != NULL)255 if ((cs != NULL) && (cs->prefix != NULL)) 255 256 free(cs->prefix); 257 256 258 if (dirname != NULL) 257 259 free(dirname); 260 258 261 if (prefix != NULL) 259 262 free(prefix); 263 260 264 if (stext != NULL) 261 265 free(stext); 266 262 267 if (cs != NULL) 263 268 free(cs); 269 264 270 if (tokens != NULL) 265 271 free(tokens); -
uspace/app/bdsh/exec.c
r3eb0c85 r8e7c9fe 97 97 { 98 98 task_id_t tid; 99 task_wait_t twait; 99 100 task_exit_t texit; 100 101 char *tmp; … … 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.