Skip site navigation (1) Skip section navigation (2)

did this ever get integrated ? (for OpenBSD)

From: Peter Galbavy <Peter(dot)Galbavy(at)knowledge(dot)com>
To: pgsql-bugs(at)postgresql(dot)org, pgsql-ports(at)postgresql(dot)org
Subject: did this ever get integrated ? (for OpenBSD)
Date: 1999-05-07 14:26:57
Message-ID: 19990507152657.A1296@office.knowledge.com (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-ports
Did anyone ever pick this up ?

(Please ignore the #if 1 ... 'endif - this was a quick test hack, since
I lost the original patch :)

Index: postgresql/src/backend/utils/error/elog.c
diff -c postgresql/src/backend/utils/error/elog.c:1.1.1.3 postgresql/src/backend/utils/error/elog.c:1.2
*** postgresql/src/backend/utils/error/elog.c:1.1.1.3   Mon Mar 29 11:45:58 1999
--- postgresql/src/backend/utils/error/elog.c   Mon Mar 29 12:40:50 1999
***************
*** 7,13 ****
   *
   *
   * IDENTIFICATION
!  *      $Header: /a/cvs/postgresql/src/backend/utils/error/elog.c,v 1.1.1.3 1999/03/29 10:45:58 peter Exp $
   *
   *-------------------------------------------------------------------------
   */
--- 7,13 ----
   *
   *
   * IDENTIFICATION
!  *      $Header: /a/cvs/postgresql/src/backend/utils/error/elog.c,v 1.2 1999/03/29 11:40:50 peter Exp $
   *
   *-------------------------------------------------------------------------
   */
***************
*** 23,28 ****
--- 23,29 ----
  #include <errno.h>
  #include <unistd.h>
  #include <signal.h>
+ #include <setjmp.h>
  
  #ifdef USE_SYSLOG
  #include <syslog.h>
***************
*** 221,228 ****
--- 222,235 ----
                ProcReleaseSpins(NULL); /* get rid of spinlocks we hold */
                if (!InError)
                {
+ #if 1
+                       extern sigjmp_buf Warn_restart;
+ 
+                       siglongjmp(Warn_restart, 1);
+ #else
                        kill(MyProcPid, SIGQUIT);       /* abort to traffic cop */
                        pause();
+ #endif
                }
  
                /*

-- 
Peter Galbavy
Knowledge Matters Ltd
http://www.knowledge.com /http://www.wonderland.org/ http://www.literature.org/

Responses

pgsql-ports by date

Next:From: Unprivileged userDate: 1999-05-07 22:48:34
Subject: Port Bug Report: Parse error for insert statement when using jdbc.
Previous:From: Unprivileged userDate: 1999-05-06 21:52:57
Subject: Port Bug Report: Can't create table because of "no amop" error on index.

pgsql-bugs by date

Next:From: José SoaresDate: 1999-05-07 14:56:27
Subject: Re: [GENERAL] int8-datatype: possible bug
Previous:From: Jelle RuttenbergDate: 1999-05-07 13:01:49
Subject: Re: [GENERAL] int8-datatype: possible bug

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group