[projects/git-slug: 67/170] Call wait() method for process that reads heads file
glen
glen at pld-linux.org
Mon Sep 21 21:44:26 CEST 2015
commit 2026d6d90fcca0e070f1aa94a712f76ccc0f08ce
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Tue Dec 13 20:43:00 2011 +0100
Call wait() method for process that reads heads file
Otherwise a zombie git process is left.
slug_watch | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/slug_watch b/slug_watch
index fba3e1a..7a9df6f 100755
--- a/slug_watch
+++ b/slug_watch
@@ -41,13 +41,15 @@ def process_file(pathname):
committer = newfile.readline().strip()
oldtuple = None
refrepo = GitRepo(git_dir=REFREPO_GDIR)
- headfile = refrepo.showfile(REFFILE, 'master').stdout
+ process = refrepo.showfile(REFFILE, 'master')
+ headfile = process.stdout
for (repo, ref, number, sha1) in heapq.merge(sorted(processnewfile(newfile)), convertstream(headfile)):
if (repo, ref) == oldtuple:
continue
oldtuple = (repo, ref)
if sha1 != EMPTYSHA1:
print(sha1, ref, repo, file=headfile_new)
+ process.wait()
headrepo = GitRepo(REFREPO_WDIR, REFREPO_GDIR)
headrepo.commitfile(REFFILE, 'Changes by {}'.format(committer))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5
More information about the pld-cvs-commit
mailing list