summaryrefslogtreecommitdiff
path: root/pam-ck-connector
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2008-02-05 11:12:33 -0500
committerWilliam Jon McCann <jmccann@redhat.com>2008-02-05 11:12:33 -0500
commitedd2422e91f80850c1adfcd3d6d6c723b7947ccf (patch)
treeec1ea379af5f2340656874afe3e52315cb173069 /pam-ck-connector
parent076d63698c204427b210a2da76dc1b7e6640bbb9 (diff)
downloadConsoleKit2-edd2422e91f80850c1adfcd3d6d6c723b7947ccf.tar.gz
set a global flag so that D-Bus does not change the SIGPIPE handler in the PAM module
Diffstat (limited to 'pam-ck-connector')
-rw-r--r--pam-ck-connector/pam-ck-connector.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/pam-ck-connector/pam-ck-connector.c b/pam-ck-connector/pam-ck-connector.c
index 1c7ecd2..4203651 100644
--- a/pam-ck-connector/pam-ck-connector.c
+++ b/pam-ck-connector/pam-ck-connector.c
@@ -103,9 +103,9 @@ ck_pam_vsyslog (const pam_handle_t *pamh,
mod_name,
service,
choice);
- if (res < 0) {
+ if (res < 0) {
return;
- }
+ }
errno = save_errno;
res = vsnprintf (msgbuf2, sizeof (msgbuf2), fmt, args);
@@ -248,6 +248,11 @@ pam_sm_open_session (pam_handle_t *pamh,
goto out;
}
+ /* set a global flag so that D-Bus does not change the SIGPIPE handler.
+ See https://bugzilla.redhat.com/show_bug.cgi?id=430431
+ */
+ dbus_connection_set_change_sigpipe (FALSE);
+
ckc = ck_connector_new ();
if (ckc == NULL) {
ck_pam_syslog (pamh, LOG_ERR, "oom creating ConsoleKit connector object");