Fix a controlling-terminal bug reported by Anthony Heading: Cygwin
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 28 Aug 2012 17:42:47 +0000 (17:42 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 28 Aug 2012 17:42:47 +0000 (17:42 +0000)
commitb359e6ccf64226b0532699f3b72758f4659d3e9d
tree2aac2916a44e82ebce18d22b5528f57b0dd4bf86
parentd2d119128a6e5c1d0a72d3812f9fb85a4e1e890d
Fix a controlling-terminal bug reported by Anthony Heading: Cygwin
doesn't have TIOCSCTTY, so my attempt to set the ctty of the child
process isn't doing anything, and only works by chance when you run
bash because bash does the thing that _will_ set the ctty, namely
opening the terminal file again without O_NOCTTY. So now we do that
too.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9638 cda61777-01e9-0310-a592-d414129be87e
contrib/cygtermd/pty.c