diff options
Diffstat (limited to 'src/e_externs.c')
-rw-r--r-- | src/e_externs.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/e_externs.c b/src/e_externs.c index f4b608c..dd37125 100644 --- a/src/e_externs.c +++ b/src/e_externs.c @@ -30,10 +30,7 @@ #include "u_path.h" #include "u_utils.h" -static void - e_extern_child(const char *fullpath, - t_com *ptr, - t_msh *msh) +static void e_extern_child(const char *fullpath, t_com *ptr, t_msh *msh) { if (execve(fullpath, ptr->argv, msh->envp) == -1) { @@ -46,9 +43,7 @@ static void } } -static void - e_export_env_fork(t_com *ptr, - t_msh *msh) +static void e_export_env_fork(t_com *ptr, t_msh *msh) { char **re_ptr; @@ -60,10 +55,11 @@ static void } } -static void - e_exec_path(const char fullpath[], - t_com *ptr, - t_msh *msh) +/* +** TODO: handle fork failed +*/ + +static void e_exec_path(const char fullpath[], t_com *ptr, t_msh *msh) { pid_t pid; int32_t status; @@ -77,7 +73,6 @@ static void } else if (pid < 0) { - /* TODO: handle fork failed */ } else { |