[ADD] signals handler *
also reorganize the code
This commit is contained in:
parent
435d06f3a9
commit
0898d3b79a
21 changed files with 454 additions and 151 deletions
11
dev/signals.txt
Normal file
11
dev/signals.txt
Normal 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
6
dev/supp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
ignore_readline_leaks
|
||||
Memcheck:Leak
|
||||
...
|
||||
obj:*readline*
|
||||
}
|
||||
2
dev/valgrind.sh
Executable file
2
dev/valgrind.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
valgrind --leak-check=full --show-leak-kinds=all --suppressions=dev/supp ./minishell
|
||||
Loading…
Add table
Add a link
Reference in a new issue