[BusyBox] init: dup2 [PATCH]

Mike Frysinger vapier at gentoo.org
Wed Jul 6 04:56:09 UTC 2005


On Monday 04 July 2005 09:21 pm, Shaun Jackman wrote:
> This patch uses dup2 instead of close/dup, which could reduce code
> size by a few bytes.

in my quick size tests it doesnt because it increases the number of function 
calls made ...

> It also removes the include of sys/mount.h since 
> it appears to be unused, and changes all O_NDELAY to O_NONBLOCK, the
> latter being the standard name for the former.

done

> Finally, it attempts a 
> call to run_applet_by_name before finally calling execv.

this is ok with me but is a change in behavior ... how do you feel about it 
Rob ?
-mike



More information about the busybox mailing list