]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/tty/pty.c
Merge branch 'parisc-for-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/delle...
[karo-tx-linux.git] / drivers / tty / pty.c
index a62798fcc014f743df4b05065b4514cc54ed2830..59bfaecc4e1438ecc771573c44c161b26fc3548d 100644 (file)
@@ -681,6 +681,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;