chuj
This commit is contained in:
parent
b8c3cc7c4c
commit
356589d214
@ -51,7 +51,7 @@ int main (){
|
|||||||
if (argv[0]==NULL)
|
if (argv[0]==NULL)
|
||||||
continue;
|
continue;
|
||||||
else if (strcmp(argv[0], "exit") == 0)
|
else if (strcmp(argv[0], "exit") == 0)
|
||||||
break;
|
exit(0);
|
||||||
else
|
else
|
||||||
if (fork() == 0)
|
if (fork() == 0)
|
||||||
execvp(argv[0], argv);
|
execvp(argv[0], argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user