Skip to content

Commit

Permalink
Remove comments from file
Browse files Browse the repository at this point in the history
  • Loading branch information
nathsotomayor committed Apr 15, 2020
1 parent 40496a2 commit 2b7b821
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions create_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,12 @@ int create_process(char *av[], int count_exe, char **env)
sprintf(error_msg, "%s: %d: %s: not found\n", av[0], count_exe, av[1]);
write(2, error_msg, _strlen(error_msg));
(alloc == 1) ? free(full_file) : (void) alloc;
} /*waitpid(child_pid, &status, 0);
if (WIFEXITED(status))
{
exit_status = WEXITSTATUS(status);
printf ( "Exit status of the child was %d\n", exit_status);
}*/
}
}
/*if (child_pid == -1)
{
sprintf(error_msg, "%s: %d: %s: not found\n", av[0], count_exe, av[1]);
write(2, error_msg, _strlen(error_msg));
}*/
/*if (child_pid > 0)*/
waitpid(child_pid, &status, 0), (alloc == 1) ? free(full_file) : (void) alloc;
if (WIFEXITED(status))
{
exit_status = WEXITSTATUS(status);
printf ( "Exit status of the child was %d\n", exit_status);
return (exit_status);
}
} else
Expand Down

0 comments on commit 2b7b821

Please sign in to comment.