summaryrefslogtreecommitdiffstats
path: root/src/m_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-12-18 16:04:14 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-12-18 16:04:14 +0100
commit7629736298b29ad5be833c11d338ab3abe236917 (patch)
tree8c4161357ae75109bcc7b8bf38bcd8b985ea3774 /src/m_loop.c
parentMerge (diff)
parentPush (diff)
download42-minishell-7629736298b29ad5be833c11d338ab3abe236917.tar.gz
42-minishell-7629736298b29ad5be833c11d338ab3abe236917.tar.bz2
42-minishell-7629736298b29ad5be833c11d338ab3abe236917.tar.xz
42-minishell-7629736298b29ad5be833c11d338ab3abe236917.tar.zst
42-minishell-7629736298b29ad5be833c11d338ab3abe236917.zip
Merged branch 'gnu-compat'
Diffstat (limited to 'src/m_loop.c')
-rw-r--r--src/m_loop.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/m_loop.c b/src/m_loop.c
index 18636da..1641d53 100644
--- a/src/m_loop.c
+++ b/src/m_loop.c
@@ -22,6 +22,7 @@
#endif
#include "c_init.h"
+#include "c_utils_next.h"
#include "c_ctrls.h"
#include "d_define.h"
#include "e_line.h"
@@ -154,10 +155,6 @@ unsigned char m_loop(int fd, t_msh *msh)
gnl = 1;
msh->curr_hist_ptr = hist;
- c_get_msh(1, msh);
- c_set_ptr(TRUE, 0, msh);
- signal(SIGINT, c_signal_int);
- signal(SIGQUIT, c_signal_ign);
while (gnl > 0)
{
gnl = (fd == STDIN_FILENO) ? c_gnl(fd, &line, 1, msh) :