]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Use O_NOCTTY (if available) when opening /dev/ptmx, just in case any
authorSimon Tatham <anakin@pobox.com>
Tue, 18 Dec 2012 09:02:38 +0000 (09:02 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 18 Dec 2012 09:02:38 +0000 (09:02 +0000)
commit25c45bf0438ff596b588ccbd9a508b89f7fb9760
tree41bf276b15005aa6c61ebef347109b9a8fc5f3b1
parentdbcd633985899cac96ecf605716dcacfdfe24237
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...)

[originally from svn r9727]
unix/uxpty.c