diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-03-06 10:15:28 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-03-06 10:15:28 +0100 |
commit | 494c293c524e66bdbed117954db9d0bff38c82b4 (patch) | |
tree | baf88f7ad8202a32529bbf0208bd9255402591c9 /apt-pkg/deb | |
parent | 733b8d47048cede17286c6cf21dbe225fbb7800d (diff) |
* apt-pkg/deb/dpkgpm.cc:
- revert termios patch (LP: #338514)
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index a54c20330..d8c38427f 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -793,16 +793,14 @@ bool pkgDPkgPM::Go(int OutStatusFd) sighandler_t old_SIGHUP = signal(SIGHUP,SIG_IGN); struct termios tt; - struct termios tt_out; struct winsize win; int master; int slave; // FIXME: setup sensible signal handling (*ick*) tcgetattr(0, &tt); - tcgetattr(1, &tt_out); ioctl(0, TIOCGWINSZ, (char *)&win); - if (openpty(&master, &slave, NULL, &tt_out, &win) < 0) + if (openpty(&master, &slave, NULL, &tt, &win) < 0) { const char *s = _("Can not write log, openpty() " "failed (/dev/pts not mounted?)\n"); |