Skip to content

Commit 5c7d04d

Browse files
committed
When shutting down the regression test postmaster after 'make check',
wait for the postmaster to actually exit. Otherwise running repeated 'make check's tends to misbehave, because we try to remove and recreate the data directory while the old PM is still alive.
1 parent 892a51c commit 5c7d04d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/regress/pg_regress.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.32 2003/07/29 00:03:19 tgl Exp $
2+
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.33 2003/07/30 17:08:47 tgl Exp $
33

44
me=`basename $0`
55
: ${TMPDIR=/tmp}
@@ -652,6 +652,7 @@ done | tee "$result_summary_file" 2>&1
652652
if [ -n "$postmaster_pid" ]; then
653653
message "shutting down postmaster"
654654
kill -15 "$postmaster_pid"
655+
wait "$postmaster_pid"
655656
unset postmaster_pid
656657
fi
657658

0 commit comments

Comments
 (0)