From 6120ef9f9e76c417cc105db8be3834516312a9eb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 21 Oct 2010 20:41:06 +1100 Subject: autobuild: don't cleanup the pid file within the retry loop if we rebase and retry we need to keep the pid file --- script/autobuild.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script') diff --git a/script/autobuild.py b/script/autobuild.py index 3fae59f255..357cb16b5b 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -278,7 +278,6 @@ def write_pidfile(fname): f = open(fname, mode='w') f.write("%u\n" % os.getpid()) f.close() - cleanup_list.append(fname) def rebase_tree(url): @@ -473,6 +472,8 @@ while True: cleanup() raise +cleanup_list.append(gitroot + "/autobuild.pid") + blist.kill_kids() if options.tail: print("waiting for tail to flush") -- cgit