signals adjustements

This commit is contained in:
LuckyLaszlo
2021-12-08 04:45:12 +01:00
parent 8125e43065
commit bcc82aabaf
5 changed files with 16 additions and 21 deletions

View File

@@ -13,7 +13,6 @@
#ifndef MINISHELL_PROTOTYPES_H
# define MINISHELL_PROTOTYPES_H
// variable globale
int g_switch_heredoc_sigint;
extern char **environ;
@@ -24,7 +23,7 @@ char **retrieve_path(void);
int set_terminal_attributes(struct termios *ori_termios,
struct termios *interactive_termios,
int *termios_changed); // WIP, TEST, TEMP, PLACEHOLDER, NOT IMPORTANT, :)
int set_signals_handling(struct sigaction *signal_behaviour);
void set_signals_behaviour(void);
// Shell modes
void shell_loop(t_all *c);

View File

@@ -46,7 +46,7 @@ typedef struct s_all
// struct termios interactive_termios;
// int termios_changed;
// struct sigaction ori_signal_behaviour;
struct sigaction signal_behaviour;
// struct sigaction signal_behaviour;
} t_all;
#endif