This commit is contained in:
Jakub Adamski 2019-01-10 14:04:29 +01:00
parent 0b875d62fc
commit 7ae5848374

View File

@ -48,7 +48,8 @@ int main (){
else if (!strcmp(argv[0], "exit"))
break;
else
execvp(argv[0], argv);
if (fork() == 0)
execvp(argv[0], argv);
}
return 0;
}