Skip to content

Fix session leader exit hang

Peter Hurley linux-serial lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tty: Refactor session leader SIGHUP from __tty_hangup()drivers/tty/tty_io.c+50 -310 replies
2/5tty: Fix spinlock flavor in non-atomic __tty_hangup()drivers/tty/tty_io.c+2 -30 replies
3/5tty: Use spin_lock() inside existing critical regiondrivers/tty/tty_io.c+2 -30 replies
4/5tty: Signal foreground group processes in hangupdrivers/tty/tty_io.c+48 -170 replies
5/5tty: Signal SIGHUP before hanging up ldiscdrivers/tty/tty_io.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Fix session leader exit hang

When a session leader exits, it hangs up the controlling tty and then signals the foreground group processes with SIGHUP. This sequence can hang as reported by Sasha Levin, and noted in the changelog of 'tty: Signal SIGHUP before hanging up ldisc'.

Peter Hurley (5):
tty: Refactor session leader SIGHUP from __tty_hangup()
tty: Fix spinlock flavor in non-atomic __tty_hangup()
tty: Use spin_lock() inside existing critical region
tty: Signal foreground group processes in hangup
tty: Signal SIGHUP before hanging up ldisc

 drivers/tty/tty_io.c | 144 ++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 96 insertions(+), 48 deletions(-)
Signature · 1 line
1.8.1.2