| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix CreateThread() failure checks |
| Date: | 2026-10-15 09:35:27 |
| Message-ID: | E1xHHrz-00000001iae-27xX@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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 <sehrope(at)jackdb(dot)com>
Discussion: https://www.postgresql.org/message-id/CAH7T-apWWfEt+V8uLU7KXv7CMM9LoqJ1Zo2LdWmXMz=u-Ek9=w@mail.gmail.com
Backpatch-through: 14
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/54635e6892f0f8bf61b0ae0d0b4bc119e7780a3b
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2026-10-15 13:52:10 | pgsql: Use StringInfo to build the result in oidvectortypes() |
| Previous Message | Heikki Linnakangas | 2026-10-15 08:43:25 | pgsql: Fix checks for aborted updating transaction in multixids |