fork.c
changeset 139 cb1d3f4cf18e
parent 138 dff18d1ac2af
--- 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;