patch-1.3.75 linux/drivers/char/tty_io.c

Next file: linux/drivers/char/vesa_blank.c
Previous file: linux/drivers/char/selection.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.74/linux/drivers/char/tty_io.c linux/drivers/char/tty_io.c
@@ -477,7 +477,7 @@
 	struct task_struct *p;
 
 	if (tty) {
-		if (on_exit)
+		if (on_exit && tty->driver.type != TTY_DRIVER_TYPE_PTY)
 			tty_vhangup(tty);
 	} else {
 		if (current->tty_old_pgrp) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this