Commit 80f92279 authored by abenoit's avatar abenoit
Browse files

frok and wait status

parent bc17aeb3
arthur:
comportement simplifié ^D
main (redundant check):
ret = exec_env_init(xe, env_source);
if (ret != SUCCESS)
return (error_and_exit(ret, xe));
wait and waitpid errors
masaki:
......
......@@ -67,6 +67,8 @@ static int err_output(int err_code, t_xe *xe)
xe->stat_loc = 126;
exit(xe->stat_loc);
}
else if (err_code == FORK_ERROR || err_code == WAIT_ERROR)
xe->stat_loc = 1;
return (SUCCESS);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment