Index: src/backend/postmaster/pgarch.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/backend/postmaster/pgarch.c,v
retrieving revision 1.20
diff -c -r1.20 pgarch.c
*** src/backend/postmaster/pgarch.c	5 Mar 2006 15:58:35 -0000	1.20
--- src/backend/postmaster/pgarch.c	23 May 2006 15:14:01 -0000
***************
*** 352,358 ****
  	 * some backend will add files onto the list of those that need archiving
  	 * while we are still copying earlier archives
  	 */
! 	while (pgarch_readyXlog(xlog))
  	{
  		int			failures = 0;
  
--- 352,358 ----
  	 * some backend will add files onto the list of those that need archiving
  	 * while we are still copying earlier archives
  	 */
! 	while (PostmasterIsAlive(true) && pgarch_readyXlog(xlog))
  	{
  		int			failures = 0;
  
