tty: fix up atime/mtime mess, take three
[pandora-kernel.git] / drivers / tty / pty.c
index d19b879..4735928 100644 (file)
@@ -669,6 +669,9 @@ static int ptmx_open(struct inode *inode, struct file *filp)
 
        nonseekable_open(inode, filp);
 
+       /* We refuse fsnotify events on ptmx, since it's a shared resource */
+       filp->f_mode |= FMODE_NONOTIFY;
+
        retval = tty_alloc_file(filp);
        if (retval)
                return retval;