feat: Added signals
Added functionality of the signals ctrl+d, ctrl+c and ctr+\
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user