summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-11-18 00:59:39 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-11-19 17:06:28 +0100
commit150bdc9ca5d656f9fba94d37c5f4f183b02bd746 (patch)
tree6c20615f4c43a86cb343b36ddbf8f7f5db3da7e1 /po
parent0c78757010a17173bdc79b818133697e7dcbf6a4 (diff)
fix PTY interaction on linux and kfreebsd
We run dpkg on its own pty, so we can log its output and have our own output around it (like the progress bar), while also allowing debconf and configfile prompts to happen. In commit 223ae57d468fdcac451209a095047a07a5698212 we changed to constantly reopening the slave for kfreebsd. This has the sideeffect though that in some cases slave and master will lose their connection on linux, so that no output is passed along anymore. We fix this by having always an fd referencing the slave open (linux), but we don't use it (kfreebsd). Failing to get our PTY up and running has many (bad) consequences including (not limited to, nor all at ones or in any case) garbled ouput, no output, no logging, a (partial) mixture of the previous items, … This commit is therefore also reshuffling quiet a bit of the creation code to get especially the output part up and running on linux and the logging for kfreebsd. Note that the testcase tries to cover some cases, but this is an interactivity issue so only interactive usage can really be a good test. Closes: 765687
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions