Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/exec.c

    rd9fae235 r19f857a  
    4040#include <str.h>
    4141#include <fcntl.h>
    42 #include <str_error.h>
    4342
    4443#include "config.h"
     
    121120        free(found);
    122121
    123         tid = task_spawn(tmp, (const char **) argv, &retval);
     122        tid = task_spawn(tmp, (const char **) argv);
    124123        free(tmp);
    125124
    126125        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);
    129127                return 1;
    130128        }
     
    132130        task_wait(tid, &texit, &retval);
    133131        if (texit != TASK_EXIT_NORMAL) {
    134                 printf("%s: Command failed (unexpectedly terminated)\n", progname);
     132                printf("Command failed (unexpectedly terminated).\n");
    135133        } 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);
    138135        }
    139136
Note: See TracChangeset for help on using the changeset viewer.