Re: BUG #13594: pg_ctl.exe redirects stderr to Windows Events Log if stderr is redirected to pipe

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: BUG #13594: pg_ctl.exe redirects stderr to Windows Events Log if stderr is redirected to pipe
Дата
Msg-id 20150903113611.GD27649@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: BUG #13594: pg_ctl.exe redirects stderr to Windows Events Log if stderr is redirected to pipe  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: BUG #13594: pg_ctl.exe redirects stderr to Windows Events Log if stderr is redirected to pipe  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-bugs
On 2015-08-31 15:51:57 +0900, Michael Paquier wrote:
>      if (!OpenProcessToken(GetCurrentProcess(), TOKEN_READ, &AccessToken))
>      {
> +#ifndef FRONTEND
>          write_stderr("could not open process token: error code %lu\n",
>                       GetLastError());
> +#else
> +        fprintf(stderr, "could not open process token: error code %lu\n",
> +                GetLastError());
> +#endif
>          exit(1);
>      }

I find these kind of ifdefs rather ugly - why not just introduce a
wrapper?

Greetings,

Andres Freund

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #13440: unaccent does not remove all diacritics
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: GRANT USAGE ON SEQUENCE missing from psql command completion