From 0ef3c0e19651c73a4695b7615de17fedc86000ee Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 8 Oct 2012 12:47:33 -0400 Subject: [PATCH] Looks like 1.5 seconds was enough delay. --- filter-test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter-test.py b/filter-test.py index 6298b91..030d3d4 100755 --- a/filter-test.py +++ b/filter-test.py @@ -24,9 +24,9 @@ data = ps.stdout.read() irkerd_count = len([x for x in data.split("\n") if x.find("irkerd") != -1]) if irkerd_count: - sys.stderr.write("Using a running irker instance...") + sys.stderr.write("Using a running irker instance...\n") else: - sys.stderr.write("Launching a new irker instance...") + sys.stderr.write("Launching a new irker instance...\n") os.system("gnome-terminal --title 'irkerd' -e 'irkerd -d 2' &") time.sleep(1.5) # Avoid a race condition -- 2.26.2