diff options
Diffstat (limited to 'smash/exec.c')
| -rw-r--r-- | smash/exec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/smash/exec.c b/smash/exec.c index 79c8414..0fca393 100644 --- a/smash/exec.c +++ b/smash/exec.c @@ -92,7 +92,7 @@ void exec(char *line) close(pipefd[1][PIPE_IN]); __execenv((const char **)argv); - wstdf("command not found: %s\n", argv[0]); + wff(STDERR_FD, "command not found: %s\n", argv[0]); exit(-1); } @@ -100,7 +100,6 @@ void exec(char *line) close(pipefd[0][PIPE_IN]); close(pipefd[0][PIPE_OUT]); } - close(pipefd[1][PIPE_IN]); pipefd[0][0] = pipefd[1][0]; pipefd[0][1] = pipefd[1][1]; |