diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-01-17 19:34:47 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-17 19:34:47 +0000 |
commit | a89cce52033d4d2f5f2fb500457adc22c97d39bd (patch) | |
tree | 0e48c84e0673c33038ee7ad023fb3f2e06bc0365 /pkg/sentry/fs/tty/queue.go | |
parent | ad33113ca5c7f5482ae18e1fe0895c92c85a453e (diff) | |
parent | 80d0f9304484897e4307c9701ddbfaacb925715d (diff) |
Merge release-20200115.0-29-g80d0f93 (automated)
Diffstat (limited to 'pkg/sentry/fs/tty/queue.go')
-rw-r--r-- | pkg/sentry/fs/tty/queue.go | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/pkg/sentry/fs/tty/queue.go b/pkg/sentry/fs/tty/queue.go index 8b5d4699a..21ccc6f32 100644 --- a/pkg/sentry/fs/tty/queue.go +++ b/pkg/sentry/fs/tty/queue.go @@ -197,18 +197,11 @@ func (q *queue) writeBytes(b []byte, l *lineDiscipline) { q.pushWaitBufLocked(l) } -// pushWaitBuf fills the queue's read buffer with data from the wait buffer. +// pushWaitBufLocked fills the queue's read buffer with data from the wait +// buffer. // // Preconditions: // * l.termiosMu must be held for reading. -func (q *queue) pushWaitBuf(l *lineDiscipline) int { - q.mu.Lock() - defer q.mu.Unlock() - return q.pushWaitBufLocked(l) -} - -// Preconditions: -// * l.termiosMu must be held for reading. // * q.mu must be locked. func (q *queue) pushWaitBufLocked(l *lineDiscipline) int { if q.waitBufLen == 0 { |