Reenable the SIGPIPE signal handler default in all cases for spawned
sessions.
This commit is contained in:
parent
136446540a
commit
46c9472cd6
@ -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…
x
Reference in New Issue
Block a user