aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2011-11-16 16:27:09 +0100
committerGreg Kroah-Hartman <[email protected]>2011-11-17 11:36:12 -0800
commit0c73c08ec73dbe080b9ec56696ee21d32754d918 (patch)
tree1ea6d927a4766dfa0f24ad4ec482eeb6187c3c98 /tools/perf/scripts/python/sctop.py
parent300420722e0734a4254f3b634e0f82664495d210 (diff)
TTY: ldisc, wait for ldisc infinitely in hangup
For /dev/console case, we do not kill all ldisc users. It's due to redirected_tty_write test in __tty_hangup. In that case there still might be a process waiting e.g. in n_tty_read for input. We wait for such processes to disappear. The problem is that we use a timeout. After this timeout, we continue closing the ldisc and start freeing tty resources. It obviously leads to crashes when the other process is woken. So to fix this, we wait infinitely before reiniting the ldisc. (The tiocsetd remains untouched -- times out after 5s.) This is nicely reproducible with this run from shell: exec 0<>/dev/console 1<>/dev/console 2<>/dev/console and stopping a getty like: systemctl stop [email protected] The crash proper may be produced only under load or with constified timing the same as for 92f6fa09b. Signed-off-by: Jiri Slaby <[email protected]> Cc: Dave Young <[email protected]> Cc: Dave Jones <[email protected]> Cc: Ben Hutchings <[email protected]> Cc: Dmitriy Matrosov <[email protected]> Cc: Alan Cox <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions