Use O_NOCTTY (if available) when opening /dev/ptmx, just in case any
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 18 Dec 2012 09:02:38 +0000 (09:02 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 18 Dec 2012 09:02:38 +0000 (09:02 +0000)
commit193c8d4a7559f40fe0e0c8610cf6832a0e976e77
tree41bf276b15005aa6c61ebef347109b9a8fc5f3b1
parent1d2a5e0b5bf87a0a0c8a02a3f06b7c9a1f426d9f
Use O_NOCTTY (if available) when opening /dev/ptmx, just in case any
OS doesn't automatically assume it.

(It would seem faintly weird to me - surely opening the master end of
a given pty is a fairly good indication that you're _not_ a process
running inside it which wants to have it available as /dev/tty! But
you never know...)

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