fork
This commit is contained in:
parent
0b875d62fc
commit
7ae5848374
@ -48,7 +48,8 @@ int main (){
|
|||||||
else if (!strcmp(argv[0], "exit"))
|
else if (!strcmp(argv[0], "exit"))
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
execvp(argv[0], argv);
|
if (fork() == 0)
|
||||||
|
execvp(argv[0], argv);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user