sudo apt-get install libreadline-dev
https://stackoverflow.com/questions/5582211/what-does-define-gnu-source-imply
valgrind --suppressions=readline.supp ./minishell
{
<Readline>
Memcheck:Leak
match-leak-kinds: reachable
...
fun:readline
...
}
{
<AddHistory>
Memcheck:Leak
match-leak-kinds: reachable
...
fun:add_history
...
}
wait(exit_code);
waitpid(pid, exit_code, 0);
while (waitpid(pid, exit_code, 0) > 0 && errno == EINTR)
action->sa_flags = SA_RESTART;