[gdm/gnome-2-30] Fix #630484, set SIGPIPE handler to default before starting Xsession.
- From: Brian Cameron <bcameron src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/gnome-2-30] Fix #630484, set SIGPIPE handler to default before starting Xsession.
- Date: Thu, 7 Apr 2011 17:07:19 +0000 (UTC)
commit 7196e4330acfa525361447ba986bd8cab1494a12
Author: Brian Cameron <brian cameron oracle com>
Date: Thu Apr 7 12:06:45 2011 -0500
Fix #630484, set SIGPIPE handler to default before starting Xsession.
daemon/gdm-session-worker.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 9470824..f8ba4ba 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -2070,6 +2070,13 @@ gdm_session_worker_start_user_session (GdmSessionWorker *worker,
_save_user_settings (worker, home_dir);
+ /*
+ * Reset SIGPIPE to default so that any process in the user
+ * session get the default SIGPIPE behavior instead of ignoring
+ * SIGPIPE.
+ */
+ signal (SIGPIPE, SIG_DFL);
+
gdm_session_execute (worker->priv->arguments[0],
worker->priv->arguments,
environment,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]