]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/tty/pty.c
tty: fix up atime/mtime mess, take three
[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;