Skip to content
Snippets Groups Projects
Commit 5833cd0a authored by Joey Le's avatar Joey Le
Browse files

Fixed debug errors

parent e427a69e
No related branches found
No related tags found
No related merge requests found
......@@ -156,11 +156,11 @@ int exec_local_cmd_loop()
fprintf(stderr, "%s\n", CMD_ERR_PIPE_LIMIT);
}
free(cmd._cmd_buffer);
cont_t pid = fork();
if inue;
continue;
} else {
pid(pid < 0 ) {
pid_t pid = fork();
if (pid < 0) {
perror("fork failed");
rc = ERR_MEMORY;
} else if (pid == 0) {
......@@ -171,7 +171,6 @@ int exec_local_cmd_loop()
} else {
int status;
wait(&status);
if (WIFEXITED(status)) {
if (WEXITSTATUS(status) != 0) {
printf("error in forking\n");
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment