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

--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to