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