fix(unix): allow EOPNOTSUPP for TIOCSBRK/TIOCCBRK

This commit is contained in:
Kirill Zhumarin 2025-10-24 19:03:36 +00:00
parent a002070686
commit bada5a9e5c

View file

@ -396,7 +396,7 @@ void SetBaton::Execute() {
result = ioctl(fd, TIOCCBRK, NULL);
}
if (-1 == result) {
if (-1 == result && errno != EOPNOTSUPP) {
snprintf(errorString, sizeof(errorString), "Error: %s, cannot set", strerror(errno));
this->SetError(errorString);
return;