Fix CreateThread() failure checks CreateThread returns NULL on failure, not INVALID_HANDLE_VALUE. In setitimer(), a failed thread creation would silently disable all timer-based timeouts.
Author: Sehrope Sarkuni <[email protected]> Discussion: https://www.postgresql.org/message-id/CAH7T-apWWfEt+V8uLU7KXv7CMM9LoqJ1Zo2LdWmXMz=u-Ek9=w...@mail.gmail.com Backpatch-through: 14 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4d62ef92fda14315f465a686c5ef272cdb2dc8e4 Modified Files -------------- src/backend/port/win32/timer.c | 2 +- src/bin/pg_test_fsync/pg_test_fsync.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
