1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:07:34 +00:00

Kernel: Unsupported TTY ioctls should return EINVAL gracefully

Fixes #4971
This commit is contained in:
Tom 2021-01-21 14:47:56 -07:00 committed by Andreas Kling
parent 47a4a5ac1d
commit 2830ce5383

View file

@ -419,7 +419,6 @@ int TTY::ioctl(FileDescription&, unsigned request, FlatPtr arg)
current_process.set_tty(nullptr);
return 0;
}
ASSERT_NOT_REACHED();
return -EINVAL;
}