feat: Added signals

Added functionality of the signals ctrl+d, ctrl+c and ctr+\
This commit is contained in:
marcnava-42cursus
2026-02-13 18:08:45 +01:00
parent 3e31447073
commit c166d0f77a
6 changed files with 212 additions and 72 deletions

View File

@@ -34,8 +34,8 @@ typedef enum e_token_type
typedef struct s_token
{
t_token_type type;
char *value;
} t_token;
char *value;
} t_token;
typedef enum e_redirection_type
{
@@ -49,7 +49,7 @@ typedef struct s_redirection
{
t_token_type type;
char *target;
} t_redirection;
} t_redirection;
/**
* @brief Structure that holds both environment and internal variables
@@ -123,6 +123,14 @@ extern void minishell_run(t_minishell *minishell);
extern void minishell_clear(t_minishell *minishell);
extern void minishell_set_interactive_signals(void);
extern void minishell_set_execution_signals(void);
extern void minishell_set_child_signals(void);
extern bool minishell_consume_sigint(void);
/* environment.c */
extern void set_envp(char **envp, t_minishell *msh);