summaryrefslogtreecommitdiffstats
path: root/src/ft_e_lcom.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 13:10:57 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 13:10:57 +0200
commitf6f17ad7b9c2e78981cf661f88a67142435356e8 (patch)
tree4420b7377c89c3ad149c54c169ef348a7c151ff0 /src/ft_e_lcom.c
parentOk but not ok (diff)
download42-minishell-f6f17ad7b9c2e78981cf661f88a67142435356e8.tar.gz
42-minishell-f6f17ad7b9c2e78981cf661f88a67142435356e8.tar.bz2
42-minishell-f6f17ad7b9c2e78981cf661f88a67142435356e8.tar.xz
42-minishell-f6f17ad7b9c2e78981cf661f88a67142435356e8.tar.zst
42-minishell-f6f17ad7b9c2e78981cf661f88a67142435356e8.zip
Omg
Diffstat (limited to 'src/ft_e_lcom.c')
-rw-r--r--src/ft_e_lcom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c
index 8cb4879..5bffe0a 100644
--- a/src/ft_e_lcom.c
+++ b/src/ft_e_lcom.c
@@ -62,7 +62,7 @@ uint8_t
close(write_fd);
}
msh->ret = msh->bu_ptr[bu_id](ptr->args, msh);
- kill(pid, SIGTERM);
+ exit(msh->ret);
}
else if (pid < 0)
{
@@ -74,6 +74,7 @@ uint8_t
{
/* TODO: fix this syntax */
}
+ msh->ret = status;
}
}
else