Changes in uspace/app/bdsh/exec.c [d9fae235:adb49f58] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
rd9fae235 radb49f58 38 38 #include <stdlib.h> 39 39 #include <unistd.h> 40 #include <str .h>40 #include <string.h> 41 41 #include <fcntl.h> 42 #include <str_error.h>43 42 44 43 #include "config.h" … … 121 120 free(found); 122 121 123 tid = task_spawn( tmp, (const char **) argv, &retval);122 tid = task_spawn((const char *)tmp, argv); 124 123 free(tmp); 125 124 126 125 if (tid == 0) { 127 cli_error(CL_EEXEC, "%s: Cannot spawn `%s' (%s)", progname, cmd, 128 str_error(retval)); 126 cli_error(CL_EEXEC, "Cannot spawn `%s'.", cmd); 129 127 return 1; 130 128 } … … 132 130 task_wait(tid, &texit, &retval); 133 131 if (texit != TASK_EXIT_NORMAL) { 134 printf(" %s: Command failed (unexpectedly terminated)\n", progname);132 printf("Command failed (unexpectedly terminated).\n"); 135 133 } else if (retval != 0) { 136 printf("%s: Command failed (%s)\n", 137 progname, str_error(retval)); 134 printf("Command failed (return value %d).\n", retval); 138 135 } 139 136
Note:
See TracChangeset
for help on using the changeset viewer.