Fix a few oversights in the longer cancel keys patch
authorHeikki Linnakangas <[email protected]>
Wed, 9 Apr 2025 10:11:42 +0000 (13:11 +0300)
committerHeikki Linnakangas <[email protected]>
Wed, 9 Apr 2025 10:11:42 +0000 (13:11 +0300)
commit0f1433f05356e8de7c4125e5192a54355e12359d
tree107f33b9f468eacfbbe5c2fd07800625b6972a2e
parentef366b7d7e3e66ca55ce80c9dfa3254ada727754
Fix a few oversights in the longer cancel keys patch

Change MyCancelKeyLength's type from uint8 to int. While it always
fits in a uint8, plain int is less surprising, as there's no
particular reason for it to be uint8.

Fix one ProcSignalInit caller that passed 'false' instead of NULL for
the pointer argument.

Author: Peter Eisentraut <[email protected]>
Discussion: https://www.postgresql.org/message-id/61be9e31-7b7d-49d5-bc11-721800d89d64@eisentraut.org
src/backend/postmaster/auxprocess.c
src/backend/utils/init/globals.c
src/include/miscadmin.h