[BusyBox] Patch to add quiet flag to mount/umount

Charlie Brady charlieb-busybox at e-smith.com
Mon Jul 5 20:25:57 UTC 2004


On Fri, 2 Jul 2004, Erik Andersen wrote:

> On Fri Jul 02, 2004 at 02:20:05PM -0300, Erico Mendonca wrote:
> > >
> > How about something like a global config directive such as 
> > SHUT_UP_BUSYBOX that will make all applets mute? :P
> 
> Something like this?
[snip]
> +#ifdef CONFIG_FEATURE_SHUT_UP
> +	close(0);
> +	close(1);
> +	close(2);
> +	open("/dev/null");
> +	dup(0);
> +	dup(0);
> +#endif
> +
>  	run_applet_by_name(bb_applet_name, argc, argv);

Presumably that would have undesirable side effects (even catastrophic
ones) for apps which read from stdin, or write to stdout. I wouldn't like 
to use a shell built this way.

--
Charlie




More information about the busybox mailing list