summaryrefslogtreecommitdiff
path: root/src/login/logind-session-dbus.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-11-06 17:24:16 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-11-06 19:50:18 -0500
commit5a330cda0ce47bd333a4cf2c559031788a26e62a (patch)
treee3adb736f782e48d2264174075f1e09b8a4c1d68 /src/login/logind-session-dbus.c
parent7b147982869e300940be16d08fae8b2460c5857c (diff)
pam_systemd: dup the fd received from logind
Otherwise sd_bus_message cleanup would close it.
Diffstat (limited to 'src/login/logind-session-dbus.c')
-rw-r--r--src/login/logind-session-dbus.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/login/logind-session-dbus.c b/src/login/logind-session-dbus.c
index a559e6045b..167d2ab8b4 100644
--- a/src/login/logind-session-dbus.c
+++ b/src/login/logind-session-dbus.c
@@ -656,6 +656,15 @@ int session_send_create_reply(Session *s, sd_bus_error *error) {
if (!p)
return -ENOMEM;
+ log_debug("Sending reply about created session: "
+ "id=%s object_path=%s runtime_path=%s session_fd=%d seat=%s vtnr=%u",
+ s->id,
+ p,
+ s->user->runtime_path,
+ fifo_fd,
+ s->seat ? s->seat->id : "",
+ (uint32_t) s->vtnr);
+
return sd_bus_reply_method_return(
s->manager->bus, c,
"soshsub",