summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-09-30 14:17:52 +1100
committerDamien Miller <djm@mindrot.org>2000-09-30 14:17:52 +1100
commitcf3888d396899f82a8ab1f60c6579cbc7887672c (patch)
tree05235eec3dbd4e77cf2565496e08934a05d3d6ec /session.c
parentb88532e38960cf3600591d92bc84e7d1cc21656f (diff)
- (djm) Ignore SIGPIPEs from serverloop to child. Fixes crashes with
very short lived X connections. Bug report from Tobias Oetiker <oetiker@ee.ethz.ch>. Fix from Markus Friedl <markus@cvs.openbsd.org>
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/session.c b/session.c
index f5bbf19d..d0172a36 100644
--- a/session.c
+++ b/session.c
@@ -477,6 +477,8 @@ do_exec_no_pty(Session *s, const char *command, struct passwd * pw)
if (s == NULL)
fatal("do_exec_no_pty: no session");
+ signal(SIGPIPE, SIG_DFL);
+
session_proctitle(s);
#ifdef USE_PAM