[buildd-tools-devel] [PATCH 07/12] [sbuild_session] Don't clone active sessions
Jan-Marek Glogowski
glogow at fbihome.de
Fri Jul 31 14:21:44 UTC 2009
---
sbuild/sbuild-session.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/sbuild/sbuild-session.cc b/sbuild/sbuild-session.cc
index 6577335..8c65cee 100644
--- a/sbuild/sbuild-session.cc
+++ b/sbuild/sbuild-session.cc
@@ -567,7 +567,8 @@ session::run_impl ()
chroot::ptr chroot;
/* Create a session using randomly-generated session ID. */
- if (ch->get_session_flags() & chroot::SESSION_CREATE)
+ if (!ch->get_active() &&
+ (ch->get_session_flags() & chroot::SESSION_CREATE))
{
chroot_facet_session::ptr session(ch->get_facet<chroot_facet_session>());
if (session)
--
1.6.3.2
More information about the Buildd-tools-devel
mailing list