This commit is contained in:
Jakub Adamski 2019-01-10 14:55:13 +01:00
parent b8c3cc7c4c
commit 356589d214

View File

@ -51,7 +51,7 @@ int main (){
if (argv[0]==NULL)
continue;
else if (strcmp(argv[0], "exit") == 0)
break;
exit(0);
else
if (fork() == 0)
execvp(argv[0], argv);