|
|
4f94566 |
From a0ef58e3e421909661c615ee6b067a9c2cd9f955 Mon Sep 17 00:00:00 2001
|
|
|
4f94566 |
From: Michal Sekletar <msekleta@redhat.com>
|
|
|
4f94566 |
Date: Tue, 4 Mar 2014 17:00:54 +0100
|
|
|
4f94566 |
Subject: [PATCH] logind: given that we can now relatively safely shutdown
|
|
|
4f94566 |
sessions copes without working cgroup empty notifications there's no need to
|
|
|
4f94566 |
set the stop timeout of sessions scopes low
|
|
|
4f94566 |
|
|
|
4f94566 |
Based-on: a50df72b37ce2a7caf7775c70d18c3f9504b9e80
|
|
|
4f94566 |
---
|
|
|
4f94566 |
src/login/logind-dbus.c | 11 +----------
|
|
|
4f94566 |
1 file changed, 1 insertion(+), 10 deletions(-)
|
|
|
4f94566 |
|
|
|
4f94566 |
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
|
|
|
4f94566 |
index c1c3d7f..e1f0c9a 100644
|
|
|
4f94566 |
--- a/src/login/logind-dbus.c
|
|
|
4f94566 |
+++ b/src/login/logind-dbus.c
|
|
|
4f94566 |
@@ -2548,10 +2548,9 @@ int manager_start_scope(
|
|
|
4f94566 |
DBusError *error,
|
|
|
4f94566 |
char **job) {
|
|
|
4f94566 |
|
|
|
4f94566 |
- const char *timeout_stop_property = "TimeoutStopUSec", *send_sighup_property = "SendSIGHUP", *pids_property = "PIDs", *after_property = "After";
|
|
|
4f94566 |
+ const char *send_sighup_property = "SendSIGHUP", *pids_property = "PIDs", *after_property = "After";
|
|
|
4f94566 |
_cleanup_dbus_message_unref_ DBusMessage *m = NULL, *reply = NULL;
|
|
|
4f94566 |
DBusMessageIter iter, sub, sub2, sub3, sub4;
|
|
|
4f94566 |
- uint64_t timeout = 500 * USEC_PER_MSEC;
|
|
|
4f94566 |
dbus_bool_t send_sighup = true;
|
|
|
4f94566 |
const char *fail = "fail";
|
|
|
4f94566 |
uint32_t u;
|
|
|
4f94566 |
@@ -2631,14 +2630,6 @@ int manager_start_scope(
|
|
|
4f94566 |
* stop timeout for sessions, so that we don't wait
|
|
|
4f94566 |
* forever. */
|
|
|
4f94566 |
|
|
|
4f94566 |
- if (!dbus_message_iter_open_container(&sub, DBUS_TYPE_STRUCT, NULL, &sub2) ||
|
|
|
4f94566 |
- !dbus_message_iter_append_basic(&sub2, DBUS_TYPE_STRING, &timeout_stop_property) ||
|
|
|
4f94566 |
- !dbus_message_iter_open_container(&sub2, DBUS_TYPE_VARIANT, "t", &sub3) ||
|
|
|
4f94566 |
- !dbus_message_iter_append_basic(&sub3, DBUS_TYPE_UINT64, &timeout) ||
|
|
|
4f94566 |
- !dbus_message_iter_close_container(&sub2, &sub3) ||
|
|
|
4f94566 |
- !dbus_message_iter_close_container(&sub, &sub2))
|
|
|
4f94566 |
- return log_oom();
|
|
|
4f94566 |
-
|
|
|
4f94566 |
/* Make sure that the session shells are terminated with
|
|
|
4f94566 |
* SIGHUP since bash and friends tend to ignore SIGTERM */
|
|
|
4f94566 |
if (!dbus_message_iter_open_container(&sub, DBUS_TYPE_STRUCT, NULL, &sub2) ||
|