mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-05 23:18:08 +01:00
No description
This was because at the point at which exit is called, we can only free a t_simple_cmd, but not the whole t_cmd tree. This commit introduces a convention of returning a t_subprocess enum from each function in exec. If the current thread is a subprocess, SUBPROCESS is returned, else PARENTPROCESS. We also no longer call exit in subproceses. This way, all processes bubble up to main, where if SUBPROCESS is returned, all memory is freed and the program exits. This also removes the previous should_exit convention. Still TODO: handling of the exit builtin, which should also bubble up in the same way. |
||
|---|---|---|
| libft | ||
| src | ||
| tests | ||
| .gitignore | ||
| .valgrindrc | ||
| grammar.md | ||
| interesting_tests.md | ||
| Makefile | ||
| NOTES.md | ||
| readline.supp | ||
| test.sh | ||