Final commit
This commit is contained in:
parent
bc1f7e0712
commit
c3286b0698
1 changed files with 3 additions and 0 deletions
3
main.c
3
main.c
|
@ -145,7 +145,10 @@ int main()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else //pid > 0 father
|
else //pid > 0 father
|
||||||
|
{
|
||||||
|
pidOfChild = pid;
|
||||||
waitpid(pid,&status,0);
|
waitpid(pid,&status,0);
|
||||||
|
}
|
||||||
|
|
||||||
free(path);
|
free(path);
|
||||||
free(exe);
|
free(exe);
|
||||||
|
|
Loading…
Reference in a new issue