Todo List

Links Úteis

Testers

Install Readline

sudo apt-get install libreadline-dev

#define _GNU_SOURCE

https://stackoverflow.com/questions/5582211/what-does-define-gnu-source-imply

Supression

valgrind --suppressions=readline.supp ./minishell

readline.supp

{
   <Readline>
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:readline
   ...
}
{
   <AddHistory>
   Memcheck:Leak
   match-leak-kinds: reachable
   ...
   fun:add_history
   ...
}

oculto

wait(exit_code);
waitpid(pid, exit_code, 0);

while (waitpid(pid, exit_code, 0) > 0 && errno == EINTR)

action->sa_flags = SA_RESTART;