This commit is contained in:
Jakub Adamski 2019-01-10 14:08:07 +01:00
parent 7ae5848374
commit d742f3f1f3

View File

@ -48,8 +48,14 @@ int main (){
else if (!strcmp(argv[0], "exit")) else if (!strcmp(argv[0], "exit"))
break; break;
else else
if (fork() == 0) if (fork() == 0){
ptintf("/n");
execvp(argv[0], argv); execvp(argv[0], argv);
} }
else{
wait(NULL);
printf("koniec komendy");
}
}
return 0; return 0;
} }