From 38630279546fbd3876fe2396f2afe4ca1bca9acc Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 7 Oct 2020 12:27:26 +0200 Subject: Fixing parenthesis pipeline parsing, False negative unmatched quote on str --- include/minishell.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/minishell.h b/include/minishell.h index 7d3f45c..e111119 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */ -/* Updated: 2020/09/16 17:20:42 by charles ### ########.fr */ +/* Updated: 2020/10/07 11:20:46 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -50,10 +50,19 @@ typedef t_ftvec* t_env; +/* +** \note Having a fixed size buffer for pids should be fine +** as long as it's greater than the process hard limit +*/ + +# define STATE_PIDS_MAX_SIZE 4096 + typedef struct { int last_status; char *progname; + pid_t pids[STATE_PIDS_MAX_SIZE]; + size_t pids_len; } t_state; extern t_state g_state; -- cgit