From 21a7bbc14398c01eed679ed0eba4a4fbbbbab30b Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 11 Apr 2014 22:30:24 +0200 Subject: [PATCH] Waiting for subprocess to terminate --- songbook_core/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/songbook_core/build.py b/songbook_core/build.py index c43b8780..afa72d20 100644 --- a/songbook_core/build.py +++ b/songbook_core/build.py @@ -241,6 +241,8 @@ class SongbookBuilder(object): line = p.stdout.readline() LOGGER.debug(log) + p.wait() + if p.returncode: raise errors.LatexCompilationError(self.basename)