Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367935
b: refs/heads/master
c: b0b8856
h: refs/heads/master
i:
  367933: 8dc767f
  367931: a7ff1b0
  367927: 441338f
  367919: 0db3a64
  367903: eb000a3
  367871: 32a6862
v: v3
  • Loading branch information
Linus Torvalds committed May 1, 2013
1 parent 398988a commit 2717a0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 08d76760832993050ad8c25e63b56773ef2ca303
refs/heads/master: b0b885657b6c8ef63a46bc9299b2a7715d19acde
3 changes: 3 additions & 0 deletions trunk/drivers/tty/pty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/tty/tty_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,10 +988,10 @@ void start_tty(struct tty_struct *tty)

EXPORT_SYMBOL(start_tty);

/* We limit tty time update visibility to every 8 seconds or so. */
static void tty_update_time(struct timespec *time)
{
unsigned long sec = get_seconds();
sec -= sec % 60;
unsigned long sec = get_seconds() & ~7;
if ((long)(sec - time->tv_sec) > 0)
time->tv_sec = sec;
}
Expand Down

0 comments on commit 2717a0e

Please sign in to comment.