mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 05:58:22 +00:00
pty: handle tty ioctl
This commit is contained in:
+2
-3
@@ -198,14 +198,13 @@ static int ioctl(int minor, unsigned long request, void *_arg, int *result) {
|
||||
return ENODEV;
|
||||
|
||||
switch (request) {
|
||||
case TIOCGPTN:
|
||||
{
|
||||
case TIOCGPTN: {
|
||||
int *arg = _arg;
|
||||
*arg = pty->minor;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return ENOTTY;
|
||||
return tty_ioctl(pty->tty, request, _arg, result);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user