This commit is contained in:
Jakub Adamski 2019-01-10 14:19:31 +01:00
parent d541025d96
commit b8a86e7456
1 changed files with 1 additions and 3 deletions

View File

@ -50,10 +50,8 @@ int main (){
else if (!strcmp(argv[0], "exit")) else if (!strcmp(argv[0], "exit"))
break; break;
else else
if (fork() == 0){ if (fork() == 0)
printf("\n");
execvp(argv[0], argv); execvp(argv[0], argv);
}
else else
wait(NULL); wait(NULL);
} }