62 |
cmd->argc = 0; |
cmd->argc = 0; |
63 |
cmd->argv_max = 4; |
cmd->argv_max = 4; |
64 |
cmd->argv = xmalloc (cmd->argv_max * sizeof *cmd->argv); |
cmd->argv = xmalloc (cmd->argv_max * sizeof *cmd->argv); |
65 |
|
cmd->nice = 0; |
66 |
|
|
67 |
/* argv[0] is the basename of the command name. */ |
/* argv[0] is the basename of the command name. */ |
68 |
name_copy = xstrdup (name); |
name_copy = xstrdup (name); |
449 |
if (p->infd != -1) |
if (p->infd != -1) |
450 |
close (p->infd); |
close (p->infd); |
451 |
|
|
452 |
|
if (p->commands[i]->nice) |
453 |
|
nice (p->commands[i]->nice); |
454 |
|
|
455 |
execvp (p->commands[i]->name, p->commands[i]->argv); |
execvp (p->commands[i]->name, p->commands[i]->argv); |
456 |
error (EXEC_FAILED_EXIT_STATUS, errno, |
error (EXEC_FAILED_EXIT_STATUS, errno, |
457 |
_("couldn't exec %s"), p->commands[i]->name); |
_("couldn't exec %s"), p->commands[i]->name); |