]> andersk Git - openssh.git/commitdiff
- (djm) Make sure we reset the SIGPIPE disposition after we fork. Report
authordjm <djm>
Wed, 13 Dec 2000 08:21:51 +0000 (08:21 +0000)
committerdjm <djm>
Wed, 13 Dec 2000 08:21:51 +0000 (08:21 +0000)
   from Andreas M. Kirchwitz <amk@krell.zikzak.de>

ChangeLog
session.c

index 8ba1a9e369ec09ba7ea0dad77200212b95f7bc27..aa3ef36fb25ea3540ceabbc43b274a5ef9aae36d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
  - (bal) Applied patch to include ssh-keyscan into Redhat's package, and
    patch to install ssh-keyscan manpage.  Patch by Pekka Savola
index a0020d42639591ba114662ab66f41a35908af738..1e996f95a98da251b7f2a7b34c877e2fa865cf1f 100644 (file)
--- a/session.c
+++ b/session.c
@@ -480,8 +480,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
@@ -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. */
                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
                 * 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. */
                log_init(__progname, options.log_level, options.log_facility, log_stderr);
 
+               signal(SIGPIPE, SIG_DFL);
+
                /* Close the master side of the pseudo tty. */
                close(ptyfd);
 
This page took 0.051168 seconds and 5 git commands to generate.