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

Message ID 20191007062528.3699-1-allan@archlinux.org
State Accepted, archived
Headers show
Series [pacman-dev] makepkg: wait for process to finish | expand

Commit Message

Allan McRae Oct. 7, 2019, 6:25 a.m. UTC
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@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"