fork
This commit is contained in:
parent
0b875d62fc
commit
7ae5848374
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user