[OpenWrt-Devel] [PATCH procd] service: start apps with LD_PRELOAD & lib disabling buffering

Rafał Miłecki zajec5 at gmail.com
Sat Jun 20 14:53:27 EDT 2015


On 20 June 2015 at 13:56, Jo-Philipp Wich <jow at openwrt.org> wrote:
>> i dont like this idea at all. calling ld-preload on every started app
>> just seems wrong
>
> I was the one suggesting the idea since we needed a solution which does
> not require modification of downstream programs. We could restrict the
> preloading to programs which requested stdio relaying support from procd
> and not preload for the rest.

AFAIK there are 3 solutions to this:
1) Modifying every app we want to support with procd + logging
2) Using PTY which I tried in https://patchwork.ozlabs.org/patch/486670/
3) Using LD_PRELOAD

The PTY was pointed as not the best choice, so that's why I continued
with LD_PRELOAD. As Jo-Philipp pointed, it's the same solution
"stdbuf" uses. I'm afraid there isn't any better alternative :(

-- 
Rafał
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list