[PATCH] crond for no-mmu
Mike Frysinger
vapier at gentoo.org
Thu Dec 13 07:32:00 UTC 2007
On Tuesday 11 December 2007, Alex Landau wrote:
> The attached trivial patch changes fork() to vfork() in two places in
> crond.c. With this change, cron works on no-mmu. Maybe it's even worth
> adding an #if BB_MMU to choose between fork and vfork...
this isnt completely correct. you cannot use exit() in vfork children. the
dupe2()/close() looks suspicious, but i havent audited the source to make
sure it's OK. the ChangeUser() is probably OK for vfork-ed children.
crondlog() cannot call exit() either.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/busybox/attachments/20071213/fc3388d9/attachment-0002.pgp
More information about the busybox
mailing list