When allocating BSD-style ptys, we should not be satisfied with a
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 5 Feb 2005 15:33:36 +0000 (15:33 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 5 Feb 2005 15:33:36 +0000 (15:33 +0000)
commit270d2e8dcba3ecc4b4af914a7bbec4cee9d20cf3
treeeb2d9f1b5044fbe3d736e7f33422650c1465a71e
parentd46a9154e9a0e15f9e4561a1f7f563e21f211208
When allocating BSD-style ptys, we should not be satisfied with a
/dev/ptyXX we can open: we must also check that we can open and use
the corresponding /dev/ttyXX, because if it's been left in the wrong
mode then we will look terribly silly when we fork and _then_
discover our pty is unusable.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5257 cda61777-01e9-0310-a592-d414129be87e
unix/uxpty.c