All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] avahi: restore rlimit-nproc tweak for avahi discovery
@ 2016-03-08  5:50 Zhixiong Chi
  2016-07-13  7:32 ` Kang Kai
  0 siblings, 1 reply; 2+ messages in thread
From: Zhixiong Chi @ 2016-03-08  5:50 UTC (permalink / raw)
  To: openembedded-core

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@windriver.com>
Signed-off-by: Zhixiong Chi <Zhixiong.Chi@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
 }
 
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] avahi: restore rlimit-nproc tweak for avahi discovery
  2016-03-08  5:50 [PATCH] avahi: restore rlimit-nproc tweak for avahi discovery Zhixiong Chi
@ 2016-07-13  7:32 ` Kang Kai
  0 siblings, 0 replies; 2+ messages in thread
From: Kang Kai @ 2016-07-13  7:32 UTC (permalink / raw)
  To: openembedded-core

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@windriver.com>
> Signed-off-by: Zhixiong Chi <Zhixiong.Chi@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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-13  7:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-08  5:50 [PATCH] avahi: restore rlimit-nproc tweak for avahi discovery Zhixiong Chi
2016-07-13  7:32 ` Kang Kai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.