PATCH: inotifyd.c: Implement a builtin 'echo' command

Denys Vlasenko vda.linux at googlemail.com
Sun Oct 9 19:10:08 UTC 2011


On Monday 03 October 2011 19:38, Flemming Madsen wrote:
> On Mon, Oct 3, 2011 at 3:11 PM, Laurent Bercot <ska-dietlibc at skarnet.org> wrote:
> >> Yes it works .. At the cost of a fork+exec per outputted line!
> >
> >  Or not, if you have configured bb to prefer applets.
> >
> >  Anyway, have you encountered a real case where you needed "inotifyd echo"
> > functionality, and the fork+exec cost was prohibitive ? If you have, then
> > your patch is a good thing (and would be even better with a config option
> > whether or not to include the functionality). If you have not, then it is
> > just creeping featurism.
> >
> > --
> >  Laurent
> > _______________________________________________
> > busybox mailing list
> > busybox at busybox.net
> > http://lists.busybox.net/mailman/listinfo/busybox
> >
> 
> I use it for a lua "multi tail" application in order to monitor the
> dirs where the monitored files lies. And yes, I consider it a massive
> overhead to do a full fork for each such reported event.

In busybox we tend to lean towards simplicity
at the expense of more code.

Yes, fork is much more expensive than write.
It doesn't mean it is a real problem, as opposed to aesthtical
feeling of "ohhh, we can do it so much faster!"

Is it a *real* problem for you?

-- 
vda


More information about the busybox mailing list