2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-29 21:38:15 +00:00

utils/apparmor/sandbox.py: sigh, add another sleep to avoid a race in firefox

This commit is contained in:
Jamie Strandboge 2012-12-04 10:15:34 -06:00
parent 826a84aca1
commit 7baf9a4d36

View File

@ -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: