summaryrefslogtreecommitdiffstats
path: root/src/m_loop.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-08-26 16:49:29 +0200
committersalad <fmoenne-@student.le-101.fr>2020-08-26 16:49:29 +0200
commitaa89d8488ef0ec021505bee68d6ee5060191cfc1 (patch)
tree2cc940f21ea42beea65106f3ad85fe8d8f9c96b6 /src/m_loop.c
parentTODO update (diff)
download42-minishell-aa89d8488ef0ec021505bee68d6ee5060191cfc1.tar.gz
42-minishell-aa89d8488ef0ec021505bee68d6ee5060191cfc1.tar.bz2
42-minishell-aa89d8488ef0ec021505bee68d6ee5060191cfc1.tar.xz
42-minishell-aa89d8488ef0ec021505bee68d6ee5060191cfc1.tar.zst
42-minishell-aa89d8488ef0ec021505bee68d6ee5060191cfc1.zip
handlesigw
Diffstat (limited to '')
-rw-r--r--src/m_loop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/m_loop.c b/src/m_loop.c
index e174f30..86d641f 100644
--- a/src/m_loop.c
+++ b/src/m_loop.c
@@ -20,6 +20,7 @@
#include "m_prompt.h"
#include "p_line.h"
#include "s_line.h"
+#include "u_utils.h"
static void
m_parse_and_run_line(char *line, t_msh *msh)
@@ -36,6 +37,7 @@ uint8_t
char *line;
int8_t gnl;
+ signal(SIGWINCH, u_handle_sigwinch);
gnl = 1;
while (gnl > 0)
{