pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix CreateThread() failure checks
Date: Thu, 15 Oct 2026 09:35:27 +0000
Message-ID: <E1xHHrz-00000001ian-2gVv@gemulon.postgresql.org> (raw)

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@jackdb.com>
Discussion: https://www.postgresql.org/message-id/CAH7T-apWWfEt+V8uLU7KXv7CMM9LoqJ1Zo2LdWmXMz=u-Ek9=w@mail.gmail...
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2bc73b3e80ab6916098ecc50dd964e668b237124

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(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1xHHrz-00000001ian-2gVv@gemulon.postgresql.org>
Permalink:  ../E1xHHrz-00000001ian-2gVv@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xHHrz-00000001ian-2gVv@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Fix CreateThread() failure checks
  In-Reply-To: <E1xHHrz-00000001ian-2gVv@gemulon.postgresql.org>
  References: <E1xHHrz-00000001ian-2gVv@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox