1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

LibC: Further stub out tcflow()

POSIX says we can set errno EINVAL and return -1 if the action is not
supported. This is better than crashing, and fixes bash crashing
whenever you press ^C.
This commit is contained in:
Tyler Lanphear 2020-12-24 22:24:55 -05:00 committed by Andreas Kling
parent 09129782de
commit aed5ec9314

View file

@ -53,7 +53,8 @@ int tcsetattr(int fd, int optional_actions, const struct termios* t)
int tcflow([[maybe_unused]] int fd, [[maybe_unused]] int action)
{
ASSERT_NOT_REACHED();
errno = EINVAL;
return -1;
}
int tcflush(int fd, int queue_selector)