-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
36 lines (32 loc) · 1.27 KB
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vilibert <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/18 11:25:35 by vilibert #+# #+# */
/* Updated: 2024/01/23 15:39:54 by vilibert ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
#include <sys/ioctl.h>
int g_signal;
int main(int argc, char **argv, char **env)
{
t_data data;
(void) argc;
(void) argv;
g_signal = 0;
disable_signal_print();
signal(SIGQUIT, SIG_IGN);
signal(SIGINT, sig_interrupt);
data.exec = NULL;
data.the_array = NULL;
data.list = NULL;
data.status = 0;
data.pid = 0;
data.line = NULL;
get_env(env, &data);
prompt_reader(&data);
}