mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #1561 from zhangningdlut:chris_tty
PiperOrigin-RevId: 291821850
This commit is contained in:
@@ -33,6 +33,8 @@ type TTY struct {
|
||||
// TTY returns the thread group's controlling terminal. If nil, there is no
|
||||
// controlling terminal.
|
||||
func (tg *ThreadGroup) TTY() *TTY {
|
||||
tg.pidns.owner.mu.RLock()
|
||||
defer tg.pidns.owner.mu.RUnlock()
|
||||
tg.signalHandlers.mu.Lock()
|
||||
defer tg.signalHandlers.mu.Unlock()
|
||||
return tg.tty
|
||||
|
||||
Reference in New Issue
Block a user