maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
signals_utils.c File Reference
#include "signals.h"
#include <readline/readline.h>
#include <readline/history.h>
#include <unistd.h>
#include "libft.h"
Include dependency graph for signals_utils.c:

Go to the source code of this file.

Functions

void handle_sigint_heredoc (int signo)
 

Function Documentation

◆ handle_sigint_heredoc()

void handle_sigint_heredoc ( int  signo)

Definition at line 19 of file signals_utils.c.

20{
21 (void)signo;
23 write(1, "\n", 1);
24 rl_replace_line("", 0);
25 rl_redisplay();
26}
volatile sig_atomic_t g_heredoc_interrupted

References g_heredoc_interrupted.

Referenced by setup_sigint_handler().

Here is the caller graph for this function: