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

Re: Error loggin in BeOS

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: dreid(at)jetnet(dot)co(dot)uk
Cc: pgsql-patches(at)hub(dot)org
Subject: Re: Error loggin in BeOS
Date: 2000-10-07 14:49:55
Message-ID: 200010071449.KAA08412@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
It appears this is already applied.

[ Charset ISO-8859-1 unsupported, converting... ]
> This caused a segfault in BeOS.
> 
> Index: src/backend/utils/error/elog.c
> ===================================================================
> RCS file: 
> /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/error/elog.c,v
> retrieving revision 1.63
> diff -u -u -r1.63 elog.c
> --- src/backend/utils/error/elog.c      2000/10/03 03:11:21     1.63
> +++ src/backend/utils/error/elog.c      2000/10/07 12:47:02
> @@ -144,6 +144,9 @@
>                 sprintf(errorstr_buf, "error %d", errno);
>                 errorstr = errorstr_buf;
>         }
> +#else
> +    errorstr = strerror(errno);
> +#endif /* __BEOS__ */
> 
>         if (lev == ERROR || lev == FATAL)
>         {
> @@ -182,9 +185,6 @@
>                         prefix = prefix_buf;
>                         break;
>         }
> -#else
> -    errorstr = strerror(errno);
> -#endif /* __BEOS__ */
> 
>         timestamp_size = 0;
>         if (Log_timestamp)
> 
> 
> 


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-patches by date

Next:From: Bruce MomjianDate: 2000-10-07 14:50:58
Subject: Re: Unix sockets on BeOS
Previous:From: Bruce MomjianDate: 2000-10-07 14:45:13
Subject: Re: [PATCH] BeOS support

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