[PATCH] crond for no-mmu
Mike Frysinger
vapier at gentoo.org
Tue Jan 22 23:53:36 UTC 2008
On Monday 17 December 2007, Alex Landau wrote:
> ----- Original Message ----
>
> > From: Mike Frysinger <vapier at gentoo.org>
please fix your e-mail client ... the replies are messed up which is why i
missed this ...
> While using exit() with vfork() may lead to bad situations, I think we're
> fine in this case. There are no atexit()s; ... and crondlog
> exit()s only from the parent (unless I missed anything).
honestly, it doesnt matter how the code functions. you never use exit() in a
vfork() child. it leads to ugly bitrot / corner case crashes. sure, *today*
it may just work, but what about tomorrow ? if someone wants to add atexit()
or similar thing, they need to go through the whole code base looking at
vfork()'s to see where someone incorrectly used exit() ?
> dup2(), close() are fine as they do not affect the memory map, but the
> descriptor table,
yes, but i was thinking descriptor tables are shared. seems this is not the
case under Linux.
-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/20080122/f2300eac/attachment-0002.pgp
More information about the busybox
mailing list