From b1b0cbdd92ddcf26726f76669572c10fe2892494 Mon Sep 17 00:00:00 2001 From: Jack Halford Date: Fri, 3 Mar 2017 19:53:59 +0100 Subject: [PATCH] builtins segfault patch --- 42sh/src/exec/launch_process.c | 3 ++- 42sh/src/main/shell_get_opts.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/42sh/src/exec/launch_process.c b/42sh/src/exec/launch_process.c index 085ce337..52919e69 100644 --- a/42sh/src/exec/launch_process.c +++ b/42sh/src/exec/launch_process.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/13 14:20:45 by jhalford #+# #+# */ -/* Updated: 2017/03/03 18:49:29 by jhalford ### ########.fr */ +/* Updated: 2017/03/03 19:53:26 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,6 +26,7 @@ int launch_process(t_process *p) if (process_redirect(p)) return (1); set_exitstatus((*p->execf)(p->path, p->av, data_singleton()->env), 1); + return (0); } else { diff --git a/42sh/src/main/shell_get_opts.c b/42sh/src/main/shell_get_opts.c index b0789b58..98742c4b 100644 --- a/42sh/src/main/shell_get_opts.c +++ b/42sh/src/main/shell_get_opts.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/01/11 14:04:48 by jhalford #+# #+# */ -/* Updated: 2017/03/03 19:45:39 by jhalford ### ########.fr */ +/* Updated: 2017/03/03 19:53:11 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */