From 72ff3ba13463a20091318899e21bfdc3401c90e0 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 22 Mar 2023 14:41:17 +0100 Subject: [PATCH] fix --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index ad3d388..a272c4f 100644 --- a/main.c +++ b/main.c @@ -12,6 +12,7 @@ #include "data/data.h" #include "execution/execution.h" +#include "libftx/libft/libft.h" #include "libftx/libft/list.h" #include "libftx/libftx.h" #include "minishell.h" @@ -61,7 +62,7 @@ static void ft_cmds_waiter(t_data *data) { if (WTERMSIG(exit_status) == SIGKILL) data->exit_code = 131; - else if (WTERMSIG(exit_status) == SIGINT) + else //(WTERMSIG(exit_status) == SIGINT) data->exit_code = 130; } else @@ -109,8 +110,8 @@ void ft_ctrlc(int num) if (data->child_pid > 1) { kill(data->child_pid, num); - ft_printf("Quit (core dumped)\n"); data->child_pid = 0; + ft_putchar_fd('\n', 1); } else {