Reenable the SIGPIPE signal handler default in all cases for spawned
sessions.
This commit is contained in:
parent
136446540a
commit
46c9472cd6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74090
@ -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__
|
||||
|
Loading…
Reference in New Issue
Block a user