diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-04-16 09:51:54 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-04-16 09:51:54 +0000 |
commit | b2bc12af46353bdc4863721f5314cf774b60cd3d (patch) | |
tree | 66654c6171000efde588ce7910575e8b2e297587 /src/tutorial/advanced.source | |
parent | 9df6127bcfac4dce26124d24a98710bef9752fb5 (diff) | |
download | postgresql-b2bc12af46353bdc4863721f5314cf774b60cd3d.tar.gz postgresql-b2bc12af46353bdc4863721f5314cf774b60cd3d.zip |
On Windows, syslogger runs in two threads. The main thread processes config
reload and rotation signals, and a helper thread reads messages from the
pipe and writes them to the log file. However, server code isn't generally
thread-safe, so if both try to do e.g palloc()/pfree() at the same time,
bad things will happen. To fix that, use a critical section (which is like
a mutex) to enforce that only one the threads are active at a time.
Diffstat (limited to 'src/tutorial/advanced.source')
0 files changed, 0 insertions, 0 deletions