]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Use correct datatype for PID
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 29 May 2026 19:26:23 +0000 (21:26 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 29 May 2026 19:26:23 +0000 (21:26 +0200)
The datachecksums launcher was using int for storing a PID, but
the correct type is pid_t (which is defined to be a signed int).

Author: Tomas Vondra <tomas@vondra.me>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/f1281cf3-89a3-4936-9bc5-2a5a6291229f@vondra.me

src/backend/postmaster/datachecksum_state.c

index b61674ae95736a4c71d772faa2057e43e4d6c86d..b578a7cc70e794bad10c7e7c6116e184b982b454 100644 (file)
@@ -303,7 +303,7 @@ typedef struct DataChecksumsStateStruct
         * none. This is set by the worker launcher when it starts waiting for a
         * worker process to finish.
         */
-       int                     worker_pid;
+       pid_t           worker_pid;
 
        /*
         * These fields indicate the target state that the launcher is currently