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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: e61f21b) | patch
Reset properly errno before calling write()
Sat, 4 Aug 2018 20:31:18 +0000 (05:31 +0900)
Sat, 4 Aug 2018 20:31:18 +0000 (05:31 +0900)
commit 5a23c74b63ec9f63c648f79b13a900c37332ee55
Reset properly errno before calling write()

6cb3372 enforces errno to ENOSPC when less bytes than what is expected
have been written when it is unset, though it forgot to properly reset
errno before doing a system call to write(), causing errno to
potentially come from a previous system call.

Reported-by: Tom Lane
Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/31797.1533326676@sss.pgh.pa.us
src/backend/access/heap/rewriteheap.c diff | blob | blame | history
src/backend/access/transam/twophase.c diff | blob | blame | history
src/backend/replication/logical/origin.c diff | blob | blame | history
src/backend/replication/logical/reorderbuffer.c diff | blob | blame | history
src/backend/replication/logical/snapbuild.c diff | blob | blame | history
src/backend/replication/slot.c diff | blob | blame | history
src/bin/pg_basebackup/walmethods.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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