summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2001-03-11 02:26:57 +0000
committergreen <green@FreeBSD.org>2001-03-11 02:26:57 +0000
commitf261519030dd854c632337a89655ba3872bcb8ed (patch)
tree134711144a181ad3bf7945b660960a554da6b7c8 /crypto
parentd25198ddf60b0b6a8d44e75417de128e29382130 (diff)
downloadFreeBSD-src-f261519030dd854c632337a89655ba3872bcb8ed.zip
FreeBSD-src-f261519030dd854c632337a89655ba3872bcb8ed.tar.gz
Reenable the SIGPIPE signal handler default in all cases for spawned
sessions.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/session.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/crypto/openssh/session.c b/crypto/openssh/session.c
index df1a241..300dc5a 100644
--- a/crypto/openssh/session.c
+++ b/crypto/openssh/session.c
@@ -448,8 +448,6 @@ 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
@@ -1243,6 +1241,12 @@ do_child(const char *command, struct passwd * pw, const char *term,
for (i = 3; i < getdtablesize(); i++)
close(i);
+ /*
+ * Restore any signal handlers set by sshd previously that should
+ * be restored to their initial state.
+ */
+ signal(SIGPIPE, SIG_DFL);
+
/* Change current directory to the user\'s home directory. */
if (
#ifdef __FreeBSD__
OpenPOWER on IntegriCloud