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 = {