14#include <readline/readline.h>
15#include <readline/history.h>
29 write(STDOUT_FILENO,
"\n", 1);
37 sigemptyset(&a.sa_mask);
39 a.sa_handler = SIG_IGN;
40 sigaction(SIGQUIT, &a, NULL);
49 sa.sa_flags = SA_RESTART | SA_SIGINFO;
50 sigemptyset(&sa.sa_mask);
51 sigaction(SIGINT, &sa, NULL);
59 write(STDOUT_FILENO,
"\n", 1);
61 rl_replace_line(
"", 0);
70 sa.sa_handler = SIG_IGN;
71 sigemptyset(&sa.sa_mask);
73 sigaction(SIGQUIT, &sa, NULL);
void signal_reset_prompt(int signo, siginfo_t *info, void *ucontext)
void signal_print_newline(int signal)
void set_signals_interactive(t_ms_data *data)
void sigquit_ignore(void)
void set_signals_noninteractive(void)
int is_external_command_running(void)