aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-04-07 20:20:53 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-04-07 20:20:53 +0100
commit88fdb40ab45ab6ab2636b385ce0bf5ac42c86f4a (patch)
tree4beae003209b40f63736d2784737665364544c4d
parent17388019c5c47f50b086c30ad43d8b451831b3c8 (diff)
downloadpaludis-88fdb40ab45ab6ab2636b385ce0bf5ac42c86f4a.tar.gz
paludis-88fdb40ab45ab6ab2636b385ce0bf5ac42c86f4a.tar.xz
Close off unused FDs earlier
-rw-r--r--src/clients/cave/cmd_display_resolution.cc1
-rw-r--r--src/clients/cave/cmd_execute_resolution.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index cdb1b43..6c2a865 100644
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -1089,6 +1089,7 @@ DisplayResolutionCommand::run(
Deserialiser deserialiser(env.get(), deser_stream);
Deserialisation deserialisation("ResolverLists", deserialiser);
lists = make_shared_copy(ResolverLists::deserialise(deserialisation));
+ close(fd);
}
display_jobs(env, *lists, cmdline);
diff --git a/src/clients/cave/cmd_execute_resolution.cc b/src/clients/cave/cmd_execute_resolution.cc
index 8eb8599..8244060 100644
--- a/src/clients/cave/cmd_execute_resolution.cc
+++ b/src/clients/cave/cmd_execute_resolution.cc
@@ -1358,6 +1358,7 @@ ExecuteResolutionCommand::run(
Deserialiser deserialiser(env.get(), deser_stream);
Deserialisation deserialisation("ResolverLists", deserialiser);
lists = make_shared_copy(ResolverLists::deserialise(deserialisation));
+ close(fd);
}
return execute_resolution(env, *lists, cmdline);