summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-09-19 12:26:47 +0000
committerbde <bde@FreeBSD.org>1995-09-19 12:26:47 +0000
commit5edd9c8320539f85ae0ef34e6456173384e171f9 (patch)
treea4fffe02c75557ae997b8f606681b4107f63c0a1
parentbf20308a750513f33c00aaa70a816b362d3843ec (diff)
downloadFreeBSD-src-5edd9c8320539f85ae0ef34e6456173384e171f9.zip
FreeBSD-src-5edd9c8320539f85ae0ef34e6456173384e171f9.tar.gz
Don't clear the session pointer in ptcclose(). It must be left alone
until the session leader exits so that a SIGHUP gets sent to the process group and the pty slave gets revoked.
-rw-r--r--sys/kern/tty_pty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 9981efa..da4449a 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tty_pty.c 8.2 (Berkeley) 9/23/93
- * $Id: tty_pty.c,v 1.19 1995/08/02 11:26:50 ache Exp $
+ * $Id: tty_pty.c,v 1.20 1995/09/08 11:08:38 bde Exp $
*/
/*
@@ -322,7 +322,6 @@ ptcclose(dev, flags, fmt, p)
}
tp->t_oproc = 0; /* mark closed */
- tp->t_session = 0;
return (0);
}
OpenPOWER on IntegriCloud