This commit is contained in:
Jakub Adamski 2019-01-10 14:09:37 +01:00
parent d742f3f1f3
commit 2760ab1d51

View File

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