close leaking slave fd after setting up pty magic
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 17 Nov 2014 14:06:35 +0000 (15:06 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 28 Nov 2014 15:15:39 +0000 (16:15 +0100)
commit9fc0b435593839de47098212f0ae5f15b6263099
tree43add4893ac6f18093d4b1c6c796934816f489d7
parent2901c54193d013d618158bee821ed2108bb12c7f
close leaking slave fd after setting up pty magic

The fd moves out of scope here anyway, so we should close it properly
instead of leaking it which will tickle down to dpkg maintainer scripts.

Closes: 767774
apt-pkg/deb/dpkgpm.cc
test/integration/framework
test/integration/test-failing-maintainer-scripts
test/integration/test-no-fds-leaked-to-maintainer-scripts [new file with mode: 0755]