git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b9c65ae) | patch
Improve postmaster's behavior if an accept() call fails. Because the server
2007年2月13日 19:18:54 +0000 (19:18 +0000)
2007年2月13日 19:18:54 +0000 (19:18 +0000)
commit cf4cc7843c17db5142a12edddb1bd17b33ea72d8
Improve postmaster's behavior if an accept() call fails. Because the server
socket is still read-ready, the code was a tight loop, wasting lots of CPU.
We can't do anything to clear the failure, other than wait, but we should give
other processes more chance to finish and release FDs; so insert a small sleep.
Also, avoid bogus "close(-1)" in this case. Per report from Jim Nasby.
src/backend/libpq/pqcomm.c diff | blob | blame | history
src/backend/postmaster/postmaster.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /