NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/49319: ptm{x} driver can't opens master side with O_NONBLOCK flag.



>Number:         49319
>Category:       kern
>Synopsis:       ptm{x} driver can't opens master side with O_NONBLOCK flag.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 26 17:20:00 +0000 2014
>Originator:     Ilia
>Release:        NetBSD
>Organization:
No
>Environment:
NetBSD
>Description:
ptm{x} driver can't opens master side with O_NONBLOCK flag.

>How-To-Repeat:
Try:

open("/dev/ptm", O_RDWR|O_NONBLOCK);

>Fix:
tty_ptm.c has:

error = VOP_OPEN(vp, FREAD|FWRITE, lwp0.l_cred);

maybe needs use mode in ptmopen().



Home | Main Index | Thread Index | Old Index