diff options
author | Damien Miller <djm@mindrot.org> | 2000-09-30 14:17:52 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-09-30 14:17:52 +1100 |
commit | cf3888d396899f82a8ab1f60c6579cbc7887672c (patch) | |
tree | 05235eec3dbd4e77cf2565496e08934a05d3d6ec /session.c | |
parent | b88532e38960cf3600591d92bc84e7d1cc21656f (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -477,6 +477,8 @@ do_exec_no_pty(Session *s, const char *command, struct passwd * pw) | |||
477 | if (s == NULL) | 477 | if (s == NULL) |
478 | fatal("do_exec_no_pty: no session"); | 478 | fatal("do_exec_no_pty: no session"); |
479 | 479 | ||
480 | signal(SIGPIPE, SIG_DFL); | ||
481 | |||
480 | session_proctitle(s); | 482 | session_proctitle(s); |
481 | 483 | ||
482 | #ifdef USE_PAM | 484 | #ifdef USE_PAM |