builtins segfault patch

This commit is contained in:
Jack Halford 2017-03-03 19:53:59 +01:00
parent f62ef4d9c0
commit b1b0cbdd92
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@
/* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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
{

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 */
/* */
/* ************************************************************************** */