Skip to content

Instantly share code, notes, and snippets.

View kanru's full-sized avatar

Kan-Ru Chen kanru

View GitHub Profile
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index 7501310..d529bb9 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -3021,6 +3021,11 @@ static int tiocswinsz(struct tty_struct *tty, struct tty_struct *re
rpgrp = get_pid(real_tty->pgrp);
spin_unlock_irqrestore(&tty->ctrl_lock, flags);
+ /* NOTE: This isn't really fix the problem, just lower the probability
+ * it occured */
screen 0
{
styles
{
normal
{
font = "sans 8"
fg = "#dddddd"
bg = "#444444"
border = "#555555"
Index: plugins_base/Logger.py
===================================================================
--- plugins_base/Logger.py (revision 1466)
+++ plugins_base/Logger.py (working copy)
@@ -49,7 +49,7 @@
or similar'''
CREATE_USER = '''
- CREATE TABLE user
+ CREATE TABLE IF NOT EXISTS user
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index daeb8f7..48e67b3 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -2523,6 +2523,9 @@ int tty_do_resize(struct tty_struct *tty, struct tty_struct *real_tty,
rpgrp = get_pid(real_tty->pgrp);
spin_unlock_irqrestore(&tty->ctrl_lock, flags);
+ tty->winsize = *ws;
+ real_tty->winsize = *ws;