mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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
Notes:
sideshowbarker
2024-07-19 00:37:10 +09:00
Author: https://github.com/Tyg13 🔰 Commit: https://github.com/SerenityOS/serenity/commit/aed5ec93143 Pull-request: https://github.com/SerenityOS/serenity/pull/4531
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…
Reference in a new issue