Quote:
Originally Posted by x_terminat_or_3
shouldn't that be
when inside a child?
|
Yes and no.
After reading
http://linux.die.net/man/2/vfork
I realized that code is wrong: after vfork only exec* or _exit() allowed,
i.e behavour for
is undefined.
So when I added exit() and it's work it was only by chance()