Encapsulated most of the pty backend's variables into a proper data
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 6 Feb 2005 15:14:34 +0000 (15:14 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 6 Feb 2005 15:14:34 +0000 (15:14 +0000)
commitd6fa1947ccca4a61baf25d22d6455e9acbf8d422
tree5614d29f323b62915801794cc7f2786e7e44856d
parent2007a49ed948d6501b67985f88296d470933ed2e
Encapsulated most of the pty backend's variables into a proper data
structure, in preparation for wanting more than one of them in a
single process. This can't be done cleanly, because the whole
business with pty_pre_init pre-allocating the pty rather assumes we
want a known number of the things before we drop privileges; so
there's a horrid hack to make pty_pre_init work on platforms that
have at most one pty instance per process, but at the same time
things ought to work sensibly with more than one per process _if_
pty_pre_init isn't required.

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