did this ever get integrated ? (for OpenBSD)

Поиск
Список
Период
Сортировка
Искать

did this ever get integrated ? (for OpenBSD)

От:
Peter Galbavy <Peter.Galbavy@knowledge.com>
Дата:
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 
  #include 
  #include 
+ #include 
  
  #ifdef USE_SYSLOG
  #include 
***************
*** 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/

Re: [BUGS] did this ever get integrated ? (for OpenBSD)

От:
Bruce Momjian <maillist@candle.pha.pa.us>
Дата:

Yes, this was applied.  Not sure when.


> 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 
>   #include 
>   #include 
> + #include 
>   
>   #ifdef USE_SYSLOG
>   #include 
> ***************
> *** 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/
> 
> 


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
FAQ