[Pkg-sssd-devel] sssd: Changes to 'ubuntu'

Timo Aaltonen tjaalton at moszumanska.debian.org
Thu Apr 6 10:54:56 UTC 2017


 debian/patches/restart_providers_on_timeshift.patch |   24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)

New commits:
commit 3e23e5df359e37a790f4f13a79c83729b8fc54c5
Author: Timo Aaltonen <tjaalton at debian.org>
Date:   Thu Apr 6 13:54:27 2017 +0300

    bah, add restart_providers_on_timeshift.patch

diff --git a/debian/patches/restart_providers_on_timeshift.patch b/debian/patches/restart_providers_on_timeshift.patch
new file mode 100644
index 0000000..3b17b29
--- /dev/null
+++ b/debian/patches/restart_providers_on_timeshift.patch
@@ -0,0 +1,24 @@
+Description: Restart the providers after a time shift has been detected
+ This patch restarts the providers using the already implemented SIGUSR2
+ for method .resetOffline (used after netlink detects an interface change).
+ By doing this, events like LDAP connection retries will be executed
+ immediately instead of having to wait the time shifted (potentially hours)
+ to get to its normal schedule.
+
+Author: Victor Tapia <victor.tapia at canonical.com>
+Bug: https://fedorahosted.org/sssd/ticket/3285
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1641875
+Last-Update: 2017-02-15
+
+--- a/src/util/util_watchdog.c
++++ b/src/util/util_watchdog.c
+@@ -158,6 +158,9 @@
+               "[%d]: %s\n", ret, sss_strerror(ret));
+         orderly_shutdown(1);
+     }
++    if (getpid() == getpgrp()) {
++        kill(-getpgrp(), SIGUSR2);
++    }
+ }
+ 
+ int setup_watchdog(struct tevent_context *ev, int interval)



More information about the Pkg-sssd-devel mailing list