It's optional to let Sheldon write "exit" when it's receiving the ctrl-D signal. But this has to be done outside signal.c to avoid errors in the system test.
A possible solution is setting the global variable signal_error to some value and anticipate on that value inside minishell.c with the message "exit".
It's optional to let Sheldon write "exit" when it's receiving the ctrl-D signal. But this has to be done outside signal.c to avoid errors in the system test.
A possible solution is setting the global variable signal_error to some value and anticipate on that value inside minishell.c with the message "exit".