mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26:22 +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: aed5ec9314
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)
|
int tcflow([[maybe_unused]] int fd, [[maybe_unused]] int action)
|
||||||
{
|
{
|
||||||
ASSERT_NOT_REACHED();
|
errno = EINVAL;
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int tcflush(int fd, int queue_selector)
|
int tcflush(int fd, int queue_selector)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue