diff options
author | Kai Kang <kai.kang@windriver.com> | 2016-07-20 17:17:37 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-26 08:56:28 +0100 |
commit | ad625f7f9bb1e47cf92b99c21c4c0a278c643d4e (patch) | |
tree | 0309d6bd92bf2fbc4a7ba4aca33faedf27626783 /meta | |
parent | 05dca6eae3bd21dde42a956339b7e515835de215 (diff) | |
download | poky-ad625f7f9bb1e47cf92b99c21c4c0a278c643d4e.tar.gz |
avahi: fix resource temporarily unavailable issue
It sometimes fails to run avahi with error: "Could not receive return value
from daemon process". It has same root cause with
https://github.com/lxc/lxc/issues/25.
Backport patch to fix this issue.
(From OE-Core rev: a901956968127b2eb5911d7b91f44fca46e30b25)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-connectivity/avahi/avahi_0.6.32.bb | 2 | ||||
-rw-r--r-- | meta/recipes-connectivity/avahi/files/avahi-fix-resource-unavaiable.patch | 30 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/avahi/avahi_0.6.32.bb b/meta/recipes-connectivity/avahi/avahi_0.6.32.bb index 6670106b1b..bfa63044ea 100644 --- a/meta/recipes-connectivity/avahi/avahi_0.6.32.bb +++ b/meta/recipes-connectivity/avahi/avahi_0.6.32.bb | |||
@@ -12,6 +12,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | |||
12 | file://avahi-daemon/main.c;endline=21;md5=9ee77368c5407af77caaef1b07285969 \ | 12 | file://avahi-daemon/main.c;endline=21;md5=9ee77368c5407af77caaef1b07285969 \ |
13 | file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf" | 13 | file://avahi-client/client.h;endline=23;md5=f4ac741a25c4f434039ba3e18c8674cf" |
14 | 14 | ||
15 | SRC_URI += "file://avahi-fix-resource-unavaiable.patch" | ||
16 | |||
15 | SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013" | 17 | SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013" |
16 | SRC_URI[sha256sum] = "d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454" | 18 | SRC_URI[sha256sum] = "d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454" |
17 | 19 | ||
diff --git a/meta/recipes-connectivity/avahi/files/avahi-fix-resource-unavaiable.patch b/meta/recipes-connectivity/avahi/files/avahi-fix-resource-unavaiable.patch new file mode 100644 index 0000000000..5a2fd75f55 --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/avahi-fix-resource-unavaiable.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | Backport from: | ||
4 | https://github.com/experimental-platform/platform-hostname-avahi/pull/9 | ||
5 | |||
6 | It sometimes fails to run avahi with error: "Could not receive return value | ||
7 | from daemon process". It has same root cause with | ||
8 | https://github.com/lxc/lxc/issues/25. | ||
9 | |||
10 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
11 | --- | ||
12 | From 5150983102ad5ad43f0dae203cb332c168eb5a71 Mon Sep 17 00:00:00 2001 | ||
13 | From: Hinnerk Haardt <haardt@information-control.de> | ||
14 | Date: Thu, 17 Dec 2015 11:52:19 +0100 | ||
15 | Subject: [PATCH] Fix `chroot.c: fork() failed: Resource temporarily | ||
16 | unavailable` as per https://github.com/lxc/lxc/issues/25. | ||
17 | |||
18 | --- | ||
19 | avahi-daemon/avahi-daemon.conf | 1 - | ||
20 | 1 file changed, 1 deletion(-) | ||
21 | |||
22 | diff --git a/avahi-daemon/avahi-daemon.conf b/avahi-daemon/avahi-daemon.conf | ||
23 | index 95166f8..3d5b7a6 100644 | ||
24 | --- a/avahi-daemon/avahi-daemon.conf | ||
25 | +++ b/avahi-daemon/avahi-daemon.conf | ||
26 | @@ -65,4 +65,3 @@ rlimit-data=4194304 | ||
27 | rlimit-fsize=0 | ||
28 | rlimit-nofile=768 | ||
29 | rlimit-stack=4194304 | ||
30 | -rlimit-nproc=3 | ||