SysLogger subprocess

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: SysLogger subprocess
Date: 2004-07-15 19:00:50
Message-ID: 40F6D462.1020708@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here's the core of the logger subprocess.

- no rotation code so far, all syslogFile handling is for testing only
- send_message_to_serverlog needs some careful handling of stderr, in
case pipe writing fails or if after a log process restart redirecting
stderr fails. In these cases, the original stderr should be used.

While looking at pgstat.c to see how to peek for pipe data, I found
readpipe=pgStatPipe[0];
select(readPipe+1, ..);

which is probably usually the same as select(pgStatPipe[1], ..) This fd
arithmetics seem a bit dubious to me.

Regards,
Andreas

Attachment Content-Type Size
syslogger.c text/x-csrc 7.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2004-07-15 19:18:25 Re: [PATCHES] serverlog rotation/functions
Previous Message Bruce Momjian 2004-07-15 18:56:13 Re: How to display privileges in psql