Index: src/backend/utils/error/elog.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/backend/utils/error/elog.c,v
retrieving revision 1.133
diff -c -c -r1.133 elog.c
*** src/backend/utils/error/elog.c	11 Apr 2004 00:54:45 -0000	1.133
--- src/backend/utils/error/elog.c	16 Apr 2004 12:55:49 -0000
***************
*** 448,453 ****
--- 448,457 ----
  			if (in_fatal_exit)
  				ereport(PANIC, (errmsg("fatal error during fatal exit, giving up")));
  
+ 			/* not safe to longjump */
+ 			if (!Warn_restart_ready || proc_exit_inprogress)
+ 				proc_exit(proc_exit_inprogress || !IsUnderPostmaster);
+ 
  			/* We will exit the backend by simulating a client EOF */
  			in_fatal_exit = true;
  		}
