Support SIGQUIT

This commit is contained in:
Wim
2023-02-19 20:00:26 +01:00
parent a547fffe1e
commit 56458440b3
@@ -405,6 +405,8 @@ func (*inputQueueTransformer) transform(l *lineDiscipline, q *queue, buf []byte)
l.fgProcessGroup.SendSignal(kernel.SignalInfoPriv(linux.SIGINT))
case l.termios.ControlCharacters[linux.VSUSP]: // ctrl-z
l.fgProcessGroup.SendSignal(kernel.SignalInfoPriv(linux.SIGTSTP))
case l.termios.ControlCharacters[linux.VQUIT]: // ctrl-\
l.fgProcessGroup.SendSignal(kernel.SignalInfoPriv(linux.SIGQUIT))
}
// In canonical mode, we discard non-terminating characters