diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-08-26 18:44:24 +0200 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-08-26 18:44:24 +0200 |
commit | ad1f44c7ff032c3b20d493805e544cd70ed4bb89 (patch) | |
tree | ef5b2f5408646ec27e0503a69057c8ba6b8aff3b /src/m_loop.c | |
parent | handlesigw (diff) | |
download | 42-minishell-ad1f44c7ff032c3b20d493805e544cd70ed4bb89.tar.gz 42-minishell-ad1f44c7ff032c3b20d493805e544cd70ed4bb89.tar.bz2 42-minishell-ad1f44c7ff032c3b20d493805e544cd70ed4bb89.tar.xz 42-minishell-ad1f44c7ff032c3b20d493805e544cd70ed4bb89.tar.zst 42-minishell-ad1f44c7ff032c3b20d493805e544cd70ed4bb89.zip |
s**** f*****
Diffstat (limited to 'src/m_loop.c')
-rw-r--r-- | src/m_loop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/m_loop.c b/src/m_loop.c index 86d641f..ed92fd5 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -14,13 +14,14 @@ #include <stdint.h> #include <stdlib.h> #include <unistd.h> +#include <signal.h> #include "e_line.h" #include "m_loop_next.h" #include "m_prompt.h" #include "p_line.h" #include "s_line.h" -#include "u_utils.h" +#include "c_init.h" static void m_parse_and_run_line(char *line, t_msh *msh) @@ -37,7 +38,8 @@ uint8_t char *line; int8_t gnl; - signal(SIGWINCH, u_handle_sigwinch); + c_init_tcaps(); + signal(SIGWINCH, u_handle_sigwinch); gnl = 1; while (gnl > 0) { |