Re: log : bad file dscriptor????

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
Cc: PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, pgsql-bugs(at)postgresql(dot)org, Ati Rosselet <ati(dot)rosselet(at)gmail(dot)com>
Subject: Re: log : bad file dscriptor????
Date: 2009-03-18 08:47:09
Message-ID: 49C0B50D.7090901@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Gurjeet Singh wrote:
> On Windows, the write to log file is done by a thread (whose main
> function is pipeThread() ), and since it works completely independent of the
> SysLoggerMain() ( which is responsible for calling logfile_rotate()
> periodically, which in turn changes the global variable syslogFile) this is
> causing a race condition due to an error in the way we are using the related
> critical section.

Thanks, committed. I hope this helps with Ati's problems.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Heikki Linnakangas 2009-03-18 09:44:43 Re: BUG #4714: Unicode Big5 Conversion
Previous Message VEN 2009-03-18 03:03:15 BUG #4715: libpq `PQgetlength' return invalid field length.

Browse pgsql-hackers by date

  From Date Subject
Next Message Sergey Burladyan 2009-03-18 09:21:03 gettext, plural form and translation
Previous Message Zdenek Kotala 2009-03-18 08:29:29 Re: Solaris getopt_long and PostgreSQL