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

Flemming Madsen busybox at themadsens.dk
Mon Oct 3 17:38:16 UTC 2011


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.
Creating a new config option for each 5 lines of code seems like
overkill to me. Especially when the change is transparent wrt.
function like here.

/Flemming


More information about the busybox mailing list