tty: let processes open a slave tty again, ignoring O_NOCTTY.
they just won't control the tty.
fixes https://github.com/haikuports/haikuports/issues/7457
Change-Id: I8968b620a39c3050f6498faaa95c25aaed86e5c1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5832
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 685e124c99b4492d7ee494d6be96801b26f1bcfd)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5838
Diff
src/add-ons/kernel/drivers/tty/slave.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
@@ -71,11 +71,9 @@
}
} else if (makeControllingTTY) {
pid_t ttySession = gSlaveTTYs[index].settings->session_id;
if (ttySession >= 0) {
if (ttySession != sessionID)
return B_NOT_ALLOWED;
makeControllingTTY = false;
} else {