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:
parent
09129782de
commit
aed5ec9314
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue