summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-10 19:24:53 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-10 19:24:53 +0100
commit413a8d9092db10eca1da5d51ef92e65320ab3bf3 (patch)
tree8b9619a41e76c3b74ebcd394b8bbd2e761d710ef
parentctrl+d fixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx... (diff)
download42-minishell-413a8d9092db10eca1da5d51ef92e65320ab3bf3.tar.gz
42-minishell-413a8d9092db10eca1da5d51ef92e65320ab3bf3.tar.bz2
42-minishell-413a8d9092db10eca1da5d51ef92e65320ab3bf3.tar.xz
42-minishell-413a8d9092db10eca1da5d51ef92e65320ab3bf3.tar.zst
42-minishell-413a8d9092db10eca1da5d51ef92e65320ab3bf3.zip
stderr
-rw-r--r--src/c_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_init.c b/src/c_init.c
index 1e55f7e..21f4a52 100644
--- a/src/c_init.c
+++ b/src/c_init.c
@@ -89,7 +89,7 @@ static short
line[0] == '\0')
{
c_set_term_raw(0);
- write(1, "exit\n", 5);
+ write(2, "exit\n", 5);
exit(msh->ret);
return (1);
}