From edd2422e91f80850c1adfcd3d6d6c723b7947ccf Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Tue, 5 Feb 2008 11:12:33 -0500 Subject: set a global flag so that D-Bus does not change the SIGPIPE handler in the PAM module --- pam-ck-connector/pam-ck-connector.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pam-ck-connector') 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"); -- cgit v1.2.3