diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-07 12:27:26 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-07 12:27:26 +0200 |
| commit | 38630279546fbd3876fe2396f2afe4ca1bca9acc (patch) | |
| tree | 3b08fa1524722334afbafc5155c96e4ee488862e /include | |
| parent | 22ff0337dc23239c32cc738bb6f576b8a0b66f8b (diff) | |
| download | minishell-38630279546fbd3876fe2396f2afe4ca1bca9acc.tar.gz minishell-38630279546fbd3876fe2396f2afe4ca1bca9acc.tar.bz2 minishell-38630279546fbd3876fe2396f2afe4ca1bca9acc.zip | |
Fixing parenthesis pipeline parsing, False negative unmatched quote on str
Diffstat (limited to 'include')
| -rw-r--r-- | include/minishell.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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; |
