diff options
author | William Jon McCann <jmccann@redhat.com> | 2008-02-05 11:12:33 -0500 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2008-02-05 11:12:33 -0500 |
commit | edd2422e91f80850c1adfcd3d6d6c723b7947ccf (patch) | |
tree | ec1ea379af5f2340656874afe3e52315cb173069 /pam-ck-connector | |
parent | 076d63698c204427b210a2da76dc1b7e6640bbb9 (diff) | |
download | ConsoleKit2-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.c | 9 |
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"); |