update: exec works !
This commit is contained in:
parent
2363fadd02
commit
77e7f65b41
24 changed files with 192 additions and 499 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/14 12:24:49 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/09/18 21:07:23 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/10/10 16:25:43 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -110,6 +110,7 @@ t_error _handle_builtin(t_spawn_info info, t_state *state, t_cmd_pipe cmd_pipe,
|
|||
t_builtin_func actual_func;
|
||||
t_builtin_spawn_info binfo;
|
||||
|
||||
mem_set_zero(&binfo, sizeof(binfo));
|
||||
binfo.state = state;
|
||||
mem_set_zero(out, sizeof(*out));
|
||||
if (_find_builtin(&info, &actual_func))
|
||||
|
|
|
|||
|
|
@ -6,11 +6,12 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/14 12:35:02 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/10/06 14:21:41 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/10/10 16:31:30 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "exec/_run_ast.h"
|
||||
#include "me/mem/mem.h"
|
||||
#include "me/os/os.h"
|
||||
#include <sys/wait.h>
|
||||
|
||||
|
|
@ -92,6 +93,7 @@ t_error run_subshell(t_ast_subshell *subshell, t_state *state,
|
|||
|
||||
if (subshell == NULL || state == NULL || out == NULL)
|
||||
return (ERROR);
|
||||
mem_set_zero(&sinfo, sizeof(sinfo));
|
||||
if (_setup_redirection(&info, state, cmd_pipe, \
|
||||
&subshell->suffixes_redirections))
|
||||
return (ERROR);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue