xfork/xvfork
Ralf Friedl
Ralf.Friedl at online.de
Thu Jul 1 09:34:04 UTC 2010
Pascal Bellard wrote
> Code shrink using xfork/xvfork (300~500 bytes)
>
man vfork:
The vfork() function has the same effect as fork(), except that the
behaviour is undefined if the process created by vfork() either modifies
any data other than a variable of type pid_t used to store the return
value from vfork(), or _*returns from the function in which vfork() was
called*_, or calls any other function before successfully calling
_exit() or one of the exec family of functions.
Ralf
More information about the busybox
mailing list