[pacman-dev] [PATCH] makepkg: wait for process to finish

Allan McRae allan at archlinux.org
Mon Oct 7 06:25:28 UTC 2019

Without the -f option to wait, we might move on and try to delete the
logpipe before the process is completed.

Signed-off-by: Allan McRae <allan at archlinux.org>

This is a follow-up to the logpipe discussion.  Hopefully this prevents
the need for rm -f on $logpipe, but we will have to wait and see if that
issue is still around.

 scripts/makepkg.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index fac268a8..ec2de455 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -428,7 +428,7 @@ run_function() {
 		$pkgfunc &>"$logpipe"
-		wait $teepid
+		wait -f $teepid
 		rm "$logpipe"

More information about the pacman-dev mailing list