24 extern volatile sig_atomic_t
g_signal;
void heredoc_sigint_handler(int sig)
SIGINT handler for heredoc.
void restore_stdin(void)
Restore STDIN after heredoc SIGINT closed it.
void interactive_sigint_handler(int sig)
SIGINT handler for the interactive prompt.
volatile sig_atomic_t g_signal
The single global variable.
void setup_heredoc_signals(void)
Configure signals for heredoc.
void setup_execution_signals(void)
Ignore signals during command execution in the parent.
void setup_interactive_signals(void)
Configure signals for the interactive prompt.
void reset_child_signals(void)
Reset signals to default behavior for the child processes.