Re: serverlog rotation/functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: serverlog rotation/functions
Дата
Msg-id 26109.1089812422@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: serverlog rotation/functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: serverlog rotation/functions
Список pgsql-patches
I wrote:
>     close(2);
>     d = dup(p[0]);
>     Assert(d == 2);

Having re-read the pipe(2) man page, of course that should be
    d = dup(p[1]);
since it's the writing end of the pipe you want to plug stderr into.

BTW, if it wasn't clear: I'd do the same pushup for stdout too,
just in case.  I'm not sure there is any output to stdout left in the
backend, but I wouldn't swear there is not, either.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: serverlog rotation/functions
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Better fixes for pg_dump bugs