[ADD] signals handler *

also reorganize the code
This commit is contained in:
mcolonna 2024-06-18 15:43:22 +02:00
parent 435d06f3a9
commit 0898d3b79a
21 changed files with 454 additions and 151 deletions

11
dev/signals.txt Normal file
View file

@ -0,0 +1,11 @@
interactive:
EMPTY FULL HEREDOC:EM HEREDOC:FU
- ^C: nouveau prompt new p new p new heredoc new heredoc
- ^D: exit exit - empty line -
- ^\: nothing - - - -
bash:
EMPTY FULL HEREDOC:EM HEREDOC:FU
- ^C: nouveau prompt new p new p new p new p
- ^D: exit exit - error -
- ^\: nothing - - - -

6
dev/supp Normal file
View file

@ -0,0 +1,6 @@
{
ignore_readline_leaks
Memcheck:Leak
...
obj:*readline*
}

2
dev/valgrind.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
valgrind --leak-check=full --show-leak-kinds=all --suppressions=dev/supp ./minishell