summaryrefslogtreecommitdiff
path: root/dselect
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-08-13 09:34:41 +0200
committerGuillem Jover <guillem@debian.org>2014-08-15 03:49:50 +0200
commitd3d2ba1dd39ae02c92efafd4d4541d33665e48fb (patch)
treed5a8199669f98fb1ab5f63e68cbaa3170294d1be /dselect
parent76650b3c3ed1245db69073cdafdf1c35c8aa2eac (diff)
downloaddpkg-d3d2ba1dd39ae02c92efafd4d4541d33665e48fb.tar.gz
libdpkg: Set close-on-exec for the debug output
This fixes a file descriptor leak on dselect subprocesses.
Diffstat (limited to 'dselect')
-rw-r--r--dselect/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dselect/main.cc b/dselect/main.cc
index 8277d8293..670e0461d 100644
--- a/dselect/main.cc
+++ b/dselect/main.cc
@@ -231,7 +231,7 @@ extern "C" {
if (!fp)
ohshite(_("couldn't open debug file `%.255s'\n"), v);
- debug_set_output(fp);
+ debug_set_output(fp, v);
debug_set_mask(dbg_general | dbg_depcon);
}