vfork vs fork
-
Hallo
Ich kann mir wirklich keinen Reim draus machen was vfork ist, bzw. was der Unterschied zwischen den beiden? danke
bauer hans
-
manpage gelesen ?
vfork(2):
...
vfork() differs from fork() in that the parent is suspended until the
child makes a call to execve(2) or _exit(2). The child shares all mem‐
ory with its parent, including the stack, until execve() is issued by
the child. The child must not return from the current function or call
exit(), but may call _exit().
...
-
vfork benutzt man nur, wenn man im neuen Prozess nur ein execve aufrufen will