patch-2.3.50 linux/drivers/char/pty.c

Next file: linux/drivers/char/sh-sci.c
Previous file: linux/drivers/char/ppdev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.49/linux/drivers/char/pty.c linux/drivers/char/pty.c
@@ -329,9 +329,10 @@
 	clear_bit(TTY_OTHER_CLOSED, &tty->link->flags);
 	wake_up_interruptible(&pty->open_wait);
 	set_bit(TTY_THROTTLED, &tty->flags);
-	/*  register a slave for the master  */
+	/*  Register a slave for the master  */
 	if (tty->driver.major == PTY_MASTER_MAJOR)
-		tty_register_devfs(&tty->link->driver, DEVFS_FL_WAIT,
+		tty_register_devfs(&tty->link->driver,
+				   DEVFS_FL_AUTO_OWNER | DEVFS_FL_WAIT,
 				   tty->link->driver.minor_start +
 				   MINOR(tty->device)-tty->driver.minor_start);
 	retval = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)