diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2017-07-12 03:27:48 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-17 14:01:39 +0100 |
commit | a731d879a79d9abf47b7a3f541f9c1b011f732e1 (patch) | |
tree | ae7912f3a8bff93d597b802e2f60b12d57450bb7 /meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb | |
parent | 39f74e11fda240c39135c5f12ed24cc8f0364c72 (diff) | |
download | poky-a731d879a79d9abf47b7a3f541f9c1b011f732e1.tar.gz |
dhcp: fix shutdown not work by SIGTERM while bind9 enable threads
In https://source.isc.org/git/bind9.git, since the following
commit applied:
...
commit b99bfa184bc9375421b5df915eea7dfac6a68a99
Author: Evan Hunt <each@isc.org>
Date: Wed Apr 10 13:49:57 2013 -0700
[master] unify internal and export libraries
3550. [func] Unified the internal and export versions of the
BIND libraries, allowing external clients to use
the same libraries as BIND. [RT #33131]
...
(git show b99bfa184bc9375421b5df915eea7dfac6a68a99 -- ./lib/isc/unix/app.c)
In this commit, if bind9 enable threads(ISC_PLATFORM_USETHREADS),
it blocks signal SIGHUP, SIGINT and SIGTERM in isc__app_ctxstart.
Which caused dhclient/dhcpd could not be stopped by SIGTERM.
It caused systemd's reboot hung which send SIGTERM by default.
(From OE-Core rev: 7d3e734481e5d400d03ffd0a12669913fd264c5f)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb')
-rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb b/meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb index 0a73eccc4b..964d05dde0 100644 --- a/meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb +++ b/meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb | |||
@@ -10,6 +10,7 @@ SRC_URI += "file://dhcp-3.0.3-dhclient-dbus.patch;striplevel=0 \ | |||
10 | file://tweak-to-support-external-bind.patch \ | 10 | file://tweak-to-support-external-bind.patch \ |
11 | file://remove-dhclient-script-bash-dependency.patch \ | 11 | file://remove-dhclient-script-bash-dependency.patch \ |
12 | file://build-shared-libs.patch \ | 12 | file://build-shared-libs.patch \ |
13 | file://Moved-the-call-to-isc_app_ctxstart-to-not-get-signal.patch \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | SRC_URI[md5sum] = "2b5e5b2fa31c2e27e487039d86f83d3f" | 16 | SRC_URI[md5sum] = "2b5e5b2fa31c2e27e487039d86f83d3f" |