- (djm) Make sure we reset the SIGPIPE disposition after we fork. Report
from Andreas M. Kirchwitz <amk@krell.zikzak.de>
This commit is contained in:
parent
e918d7966f
commit
152cea206a
|
@ -1,3 +1,7 @@
|
||||||
|
20001213
|
||||||
|
- (djm) Make sure we reset the SIGPIPE disposition after we fork. Report
|
||||||
|
from Andreas M. Kirchwitz <amk@krell.zikzak.de>
|
||||||
|
|
||||||
20001211
|
20001211
|
||||||
- (bal) Applied patch to include ssh-keyscan into Redhat's package, and
|
- (bal) Applied patch to include ssh-keyscan into Redhat's package, and
|
||||||
patch to install ssh-keyscan manpage. Patch by Pekka Savola
|
patch to install ssh-keyscan manpage. Patch by Pekka Savola
|
||||||
|
|
|
@ -480,8 +480,6 @@ do_exec_no_pty(Session *s, const char *command, struct passwd * pw)
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
fatal("do_exec_no_pty: no session");
|
fatal("do_exec_no_pty: no session");
|
||||||
|
|
||||||
signal(SIGPIPE, SIG_DFL);
|
|
||||||
|
|
||||||
session_proctitle(s);
|
session_proctitle(s);
|
||||||
|
|
||||||
#ifdef USE_PAM
|
#ifdef USE_PAM
|
||||||
|
@ -493,6 +491,8 @@ do_exec_no_pty(Session *s, const char *command, struct passwd * pw)
|
||||||
/* Child. Reinitialize the log since the pid has changed. */
|
/* Child. Reinitialize the log since the pid has changed. */
|
||||||
log_init(__progname, options.log_level, options.log_facility, log_stderr);
|
log_init(__progname, options.log_level, options.log_facility, log_stderr);
|
||||||
|
|
||||||
|
signal(SIGPIPE, SIG_DFL);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create a new session and process group since the 4.4BSD
|
* Create a new session and process group since the 4.4BSD
|
||||||
* setlogin() affects the entire process group.
|
* setlogin() affects the entire process group.
|
||||||
|
@ -606,6 +606,8 @@ do_exec_pty(Session *s, const char *command, struct passwd * pw)
|
||||||
/* Child. Reinitialize the log because the pid has changed. */
|
/* Child. Reinitialize the log because the pid has changed. */
|
||||||
log_init(__progname, options.log_level, options.log_facility, log_stderr);
|
log_init(__progname, options.log_level, options.log_facility, log_stderr);
|
||||||
|
|
||||||
|
signal(SIGPIPE, SIG_DFL);
|
||||||
|
|
||||||
/* Close the master side of the pseudo tty. */
|
/* Close the master side of the pseudo tty. */
|
||||||
close(ptyfd);
|
close(ptyfd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue