git: 41435c768d63 - stable/15 - pty: preserve O_NONBLOCK when opening /dev/ptmx
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Oct 2026 00:24:54 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=41435c768d631ed35854ddc344014b17c699cd21
commit 41435c768d631ed35854ddc344014b17c699cd21
Author: Vladimir Grebenshchikov <vova@zote.me>
AuthorDate: 2026-10-12 18:31:30 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-10-23 00:24:19 +0000
pty: preserve O_NONBLOCK when opening /dev/ptmx
(cherry picked from commit 495bc1924edfd474c479df61ec35bdf6a83a8d17)
---
sys/dev/pty/pty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/pty/pty.c b/sys/dev/pty/pty.c
index 3fb5e6b24184..abbf8201f1cb 100644
--- a/sys/dev/pty/pty.c
+++ b/sys/dev/pty/pty.c
@@ -129,7 +129,7 @@ ptmx_fdopen(struct cdev *dev __unused, int fflags, struct thread *td,
struct file *fp)
{
- return (pts_alloc(fflags & (FREAD|FWRITE), td, fp));
+ return (pts_alloc(fflags & (FREAD | FWRITE | FNONBLOCK), td, fp));
}
static struct cdevsw ptmx_cdevsw = {