diff --git a/minishell.c b/minishell.c index 6593f98..cb3d464 100644 --- a/minishell.c +++ b/minishell.c @@ -105,11 +105,11 @@ int main(int argc, char *argv[]) else { // instructions du père if (cmd->backgrounded) - { // on sauvegarde le pid du procces mis en fond + { // on sauvegarde le pid, si background ajouter(&jobs, pidFils, job_id++); } else - { + { // on attend le fils, si foreground jmp_buf env; setjmp(env); // sauvegarde pour un jump