From: José Fonseca Date: Wed, 14 Mar 2012 11:06:44 +0000 (+0000) Subject: Avoid weird named fifo race condition in tracediff. X-Git-Tag: 2.0_alpha^2~242 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df1a1816c13e6fcdf63a45c973f09f04af318073;p=tools%2Fapitrace.git Avoid weird named fifo race condition in tracediff. --- diff --git a/scripts/tracediff.py b/scripts/tracediff.py index 7237da0..f4f86e3 100755 --- a/scripts/tracediff.py +++ b/scripts/tracediff.py @@ -32,6 +32,7 @@ import shutil import subprocess import sys import tempfile +import time def stripdump(trace, fifo): @@ -60,6 +61,9 @@ def stripdump(trace, fifo): universal_newlines = True, ) + # XXX: Avoid a weird race condition + time.sleep(0.01) + def diff(traces): fifodir = tempfile.mkdtemp()