From 7baf9a4d36686eafb1d8b1885c7e55724f1ed16c Mon Sep 17 00:00:00 2001 From: Jamie Strandboge Date: Tue, 4 Dec 2012 10:15:34 -0600 Subject: [PATCH] utils/apparmor/sandbox.py: sigh, add another sleep to avoid a race in firefox --- utils/apparmor/sandbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/apparmor/sandbox.py b/utils/apparmor/sandbox.py index a05d7c47e..ba5919822 100644 --- a/utils/apparmor/sandbox.py +++ b/utils/apparmor/sandbox.py @@ -8,7 +8,7 @@ # # ------------------------------------------------------------------ -from apparmor.common import AppArmorException, debug, error, warn, msg, cmd +from apparmor.common import AppArmorException, debug, error, msg, cmd import apparmor.easyprof import optparse import os @@ -605,7 +605,7 @@ EndSection self.pids.append(listener_x) started = False - time.sleep(0.5) + time.sleep(2) # FIXME: detect if running for i in range(self.timeout): # 5 seconds to start rc, out = cmd(['xpra', 'list']) if 'LIVE session at %s' % self.display in out: