[OE-core] [PATCH] avahi: restore rlimit-nproc tweak for avahi discovery

Kang Kai Kai.Kang at windriver.com
Wed Jul 13 07:32:52 UTC 2016


On 2016年03月08日 13:50, Zhixiong Chi wrote:
> Looks like we are still falling victim to:
>     "chroot.c: fork() failed: Resource temporarily unavailable) = 57"
> So we restore the removal of rlimit-nproc in avahi.conf, and could
> receive return value from daemon process to start avahi-daemon.service
> successfully.
>
> The original patch is from
> <https://github.com/WindRiver-OpenSourceLabs/overc-installer>
> <commit 1ee34b64b676c79d71e1a9f2fb5dfa80d3616714>
>
> Signed-off-by: Bruce Ashfield <bruce.ashfield at windriver.com>
> Signed-off-by: Zhixiong Chi <Zhixiong.Chi at windriver.com>
> ---
>   meta/recipes-connectivity/avahi/avahi.inc | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
> index faa8ee8..65bdf6b 100644
> --- a/meta/recipes-connectivity/avahi/avahi.inc
> +++ b/meta/recipes-connectivity/avahi/avahi.inc
> @@ -63,6 +63,7 @@ LDFLAGS_append_uclinux-uclibc = " -lintl"
>   
>   do_configure_prepend() {
>       sed 's:AM_CHECK_PYMOD:echo "no pymod" #AM_CHECK_PYMOD:g' -i ${S}/configure.ac
> +    sed -i "s/^.*rlimit\-nproc=.*/# rlimit-nproc=3/" ${S}/avahi-daemon/avahi-daemon.conf
>   }
>   
>   

Any comment on this patch?


Thanks.


-- 
Regards,
Neil | Kai Kang




More information about the Openembedded-core mailing list