summaryrefslogtreecommitdiffstats
path: root/src/u_utils.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/u_utils.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/u_utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/u_utils.c b/src/u_utils.c
index f50d861..b4ef987 100644
--- a/src/u_utils.c
+++ b/src/u_utils.c
@@ -14,6 +14,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
+#include <signal.h>
#include "f_fail.h"
#include "s_struct.h"
@@ -65,3 +66,10 @@ uint64_t
}
return (argc);
}
+
+int u_handle_sigwinch(int dummy_signal)
+{
+ term = getenv();
+ tputs(, 1, ft_putchar);
+ fflush(stdout);
+}