Guest User

Untitled

a guest
Feb 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
  2. index 7501310..d529bb9 100644
  3. --- a/drivers/char/tty_io.c
  4. +++ b/drivers/char/tty_io.c
  5. @@ -3021,6 +3021,11 @@ static int tiocswinsz(struct tty_struct *tty, struct tty_struct *re
  6. rpgrp = get_pid(real_tty->pgrp);
  7. spin_unlock_irqrestore(&tty->ctrl_lock, flags);
  8.  
  9. + /* NOTE: This isn't really fix the problem, just lower the probability
  10. + * it occured */
  11. + tty->winsize = tmp_ws;
  12. + real_tty->winsize = tmp_ws;
  13. +
  14. if (pgrp)
  15. kill_pgrp(pgrp, SIGWINCH, 1);
  16. if (rpgrp != pgrp && rpgrp)
  17. @@ -3028,9 +3033,6 @@ static int tiocswinsz(struct tty_struct *tty, struct tty_struct *rea
  18.  
  19. put_pid(pgrp);
  20. put_pid(rpgrp);
  21. -
  22. - tty->winsize = tmp_ws;
  23. - real_tty->winsize = tmp_ws;
  24. done:
  25. mutex_unlock(&tty->termios_mutex);
  26. return 0;
Add Comment
Please, Sign In to add comment