--- a/fork.c +++ b/fork.c @@ -18,7 +18,8 @@ switch (pid) { case 0: printf ("Starting new Process\n"); - return execve (cmd, argv, argp); + execve (cmd, argv, argp); + exit (EXIT_FAILURE); case -1: perror ("FORK"); return errno;