mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Implement TIOCSCTTY ioctl as a noop.
PiperOrigin-RevId: 215658757 Change-Id: If63b33293f3e53a7f607ae72daa79e2b7ef6fcfd
This commit is contained in:
committed by
Shentubot
parent
4fef31f96c
commit
213f6688a5
@@ -22,6 +22,7 @@ const (
|
||||
TCSETS = 0x00005402
|
||||
TCSETSW = 0x00005403
|
||||
TCSETSF = 0x00005404
|
||||
TIOCSCTTY = 0x0000540e
|
||||
TIOCGPGRP = 0x0000540f
|
||||
TIOCSPGRP = 0x00005410
|
||||
TIOCOUTQ = 0x00005411
|
||||
|
||||
@@ -154,6 +154,12 @@ func (sf *slaveFileOperations) Ioctl(ctx context.Context, io usermem.IO, args ar
|
||||
return 0, sf.si.t.ld.windowSize(ctx, io, args)
|
||||
case linux.TIOCSWINSZ:
|
||||
return 0, sf.si.t.ld.setWindowSize(ctx, io, args)
|
||||
case linux.TIOCSCTTY:
|
||||
// Make the given terminal the controlling terminal of the
|
||||
// calling process.
|
||||
// TODO: Implement once we have support for job
|
||||
// control.
|
||||
return 0, nil
|
||||
default:
|
||||
return 0, syserror.ENOTTY
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user