signals and termios WIP

+ shell script placeholder
+ generics functions
+ valgrind add_history() supp
+ misc
This commit is contained in:
LuckyLaszlo
2021-10-30 16:39:24 +02:00
parent 58ef5a4a03
commit ab2aa509df
16 changed files with 302 additions and 73 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/10 23:53:17 by lperrey #+# #+# */
/* Updated: 2021/10/22 13:35:33 by lperrey ### ########.fr */
/* Updated: 2021/10/30 14:18:09 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,6 +17,9 @@ int free_exit(t_all *c, int exit_status)
free(c->prompt_base);
free(c->prompt);
ft_lstclear((t_list **)&c->token_list, free); // a voir avec Hugo, il y a un truc qui me semble superflu dans la fonction
exit(exit_status);
ft_free_2d_arr(c->envp);
if (c->termios_changed)
tcsetattr(STDIN_FILENO, TCSANOW, &c->ori_termios);
rl_clear_history();
exit(exit_status);
}