Implement vfork/_exit using setjmp/longjmp
Rob Landley
rob at landley.net
Mon May 1 19:38:51 UTC 2006
On Saturday 29 April 2006 2:26 am, Shaun Jackman wrote:
> On 4/27/06, Mike Frysinger <vapier at gentoo.org> wrote:
> > On Thursday 27 April 2006 17:21, Shaun Jackman wrote:
> > > This patch implements a poor man's version of vfork/_exit using
> > > setjmp/longjmp.
> >
> > an update of this huh ?
> > http://www.busybox.net/lists/busybox/2005-March/013762.html
> > -mike
>
> Exactly. I think the concept shows some promise for eventual inclusion
> into the main stream busybox, but it requires some better engineering
> than a simple wholesale replacement of vfork/_exit with
> setjmp/longjump.
>
> Cheers,
> Shaun
Well, first of all we have platform.h now, so the #ifdef stuff belongs in
there rather than in libbb.h.
The fork.c part also looks like a good excuse to create either a
libbb/platform.c or a libbb/platform subdirectory to stick fork.c in.
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list