summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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