patch-2.3.99-pre6 linux/drivers/char/tty_io.c
Next file: linux/drivers/char/videodev.c
Previous file: linux/drivers/char/synclink.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Fri Apr 21 16:11:05 2000
- Orig file:
v2.3.99-pre5/linux/drivers/char/tty_io.c
- Orig date:
Tue Apr 11 15:09:17 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/char/tty_io.c linux/drivers/char/tty_io.c
@@ -367,6 +367,7 @@
return -EIO;
}
+/* No kernel lock held - none needed ;) */
static unsigned int hung_up_tty_poll(struct file * filp, poll_table * wait)
{
return POLLIN | POLLOUT | POLLERR | POLLHUP | POLLRDNORM | POLLWRNORM;
@@ -1410,6 +1411,7 @@
return 0;
}
+/* No kernel lock held - fine */
static unsigned int tty_poll(struct file * filp, poll_table * wait)
{
struct tty_struct * tty;
@@ -2015,6 +2017,8 @@
mode |= S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
break;
default:
+ if (driver->major == PTY_MASTER_MAJOR)
+ flags |= DEVFS_FL_AUTO_OWNER;
break;
}
if ( (minor < driver->minor_start) ||
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)