Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vUGyI-0045my-0O for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Dec 2025 04:11:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vUGyG-009t20-2Z for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Dec 2025 04:11:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vUGyG-009t1r-1Z for pgsql-hackers@lists.postgresql.org; Sat, 13 Dec 2025 04:11:05 +0000 Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vUGyE-000TPw-1n for pgsql-hackers@postgresql.org; Sat, 13 Dec 2025 04:11:05 +0000 Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-78ab039ddb4so19085637b3.3 for ; Fri, 12 Dec 2025 20:11:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765599060; x=1766203860; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=AGtD0YsR6ZFWmdlofn1WYn5FBRPiLemijd7IqINrnaM=; b=dJkvy4nbWWhR8rUCKG0KeJocON1wcH0sJEvXqlcaPYOVfkzvsIhtiSeV2TGJhyFBVv P4GZAf4cMlh0qc697Ue3fdneULYuzZHOWPcdvLLxhIlzehoEcspWelbpB92xgX1NlT+a dB2yYvnsNQNtjdYPrMWH4/C07tkkjOkMqBweD3vLU0md6XL5HRUhWeSRMp8L/WXoiVLC HZQ05zuIJVcY8G7MQONbVj1O1mZ7riwFz9C0tYlCIEN1t06i/wxpmRqL3E7Sb/VVwg9S a+Fptvu3NuSGjnVXVYe889q8KrzDnQoVojkYeq5QLfhr/H5XWoAgMllAIL/9I+xAzj0c 9ENw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765599060; x=1766203860; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AGtD0YsR6ZFWmdlofn1WYn5FBRPiLemijd7IqINrnaM=; b=BTBsJCTqlvvDErJ1MGEDy6YRAGcnTw/nutlcc0MzeWKnx543NG5SFyTMtY9y973EC3 AauZjRSBqfhHEbEbEy0sxs+4BM1RN4tF8sBSVPhv8kUXySTaYQCNZbawhXS65HqxVdHy L/ah9W51QWJCDwZB/8ukRvNW6Unt286IXRwbnptdcAESm53mBc8DnUmm2hh0cHc4Iyv7 DSGseoA+07jEZ2GP8NETD1Ux/Fc6Gtshk3LqwDXBWnVfA3Ets4UGGQJ5ujGfxdgRk9DX skFw5PnwTEbZF3IoK0o5R2SWrVYeRY7Uh2vh6LHFFQAOEtm7LIEZjYQvkavT+BV4hVwv rUhg== X-Gm-Message-State: AOJu0YxGgWpsGCA1RoRCuA0tk2GgToiZ9X5YPO3SbZgV7oUMrhkrkXhT qbPv4317J62N6mw5HmVtc7KwRx+0iE86thIQENH130JW83TdF9KS849e X-Gm-Gg: AY/fxX6+7Vq1ju+X2ITyByaAUplqpTEx8JB+5kb+6LDlVDfAGj6eX/bbPxozhPmcdwR fXQ4QvO2bj8uqAs+HD7UrvaHW4nthG+zbunjJBNv/oosD3PvMK8pJEsdF9J/UoNCVLOQk2X8PCb tzm5KNpHBAh4i0JDLn+waHZ+VOUrfFCQymiNU3bnkpJyRVgAFP9IRtm5gJ+XSIr99SnORuoy0hq PfIXWgaeOZDgGf64rnA80gOLdV6TqlVNCEKSAB3tIwVa/78jKrAIoYKGjLb7KhngtH1RTIaiM5U nnXcofpQf7X4S1Pjg7ichzoeBZ5xuRjbhbqZqRx9QVf07FNnAeFXuS7Mti+pRytj9Mkmzsv10QU W2MlNwsjGRB79Va9y8aSyQPbbc/iUjRlySHQpR1RDUnfD+XXo7s8XVi6mUdSQOtBE0MVGgVIWim pOwP9O8eoPdzivc3g9LBH5S/iB0iCMItTB3FCBgv1kY8W+nhjTQtP19XxbIM9zqb+72l+Gj3Jjt Bk= X-Google-Smtp-Source: AGHT+IGVVlNzekbXK090AAhFxat/ePtDo1bVhnrEFT55Ntrd+TSlLPuA72HMCf1PXFIdsWuSuM37Dw== X-Received: by 2002:a05:690e:4106:b0:645:415f:a9c with SMTP id 956f58d0204a3-645555bd3f1mr2957571d50.7.1765599060133; Fri, 12 Dec 2025 20:11:00 -0800 (PST) Received: from ?IPV6:2600:1700:8952:80:402e:5d76:27a9:71a9? ([2600:1700:8952:80:402e:5d76:27a9:71a9]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-64477d583e1sm3384811d50.7.2025.12.12.20.10.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Dec 2025 20:10:58 -0800 (PST) Message-ID: <45ced00e-e6d1-487b-982d-1720418233b8@gmail.com> Date: Fri, 12 Dec 2025 22:10:45 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] O_CLOEXEC not honored on Windows - handle inheritance chain To: Thomas Munro , Tom Lane Cc: pgsql-hackers References: <7f6779d5-7a0e-44c5-a85f-b4ef265db766@gmail.com> <35f9236e-95d8-4f31-ac6b-ec54b7de4bac@gmail.com> <7412f694-7c57-41e5-ae37-71136070b0da@gmail.com> <1086088.1765593851@sss.pgh.pa.us> Content-Language: en-US From: Bryan Green In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/12/2025 9:57 PM, Thomas Munro wrote: > On Sat, Dec 13, 2025 at 3:44 PM Tom Lane wrote: >> Thomas Munro writes: >>> Hearing nothing, pushed. >> >> fairywren is unimpressed: >> >> ../pgsql/src/test/modules/test_cloexec/test_cloexec.c: In function 'run_parent_tests': >> ../pgsql/src/test/modules/test_cloexec/test_cloexec.c:137:29: warning: unused variable 'space_pos' [-Wunused-variable] >> 137 | char *space_pos; >> | ^~~~~~~~~ > > The CI MinGW task also shows this warning, but it doesn't use -Werror. > The separate CompileWarnings task does, being its purpose, and it > includes a MinGW cross-build step, but that uses configure, and this > test is built only by meson. That wasn't a great idea... we knew we > were only dealing with Windows but forgot about MinGW, so I'll go and > write a patch to fix that aspect later today so we're covered for > warnings. I'll also think about whether it's worth checking for MinGW > warnings in both assert and non-assert builds (as we do for regular > Linux gcc/clang), and I'd also like to try to catch warnings from MSVC > and had an idea for how to do that... I might also try to think about > meson-vs-configure cross checks... > >> What is the point of that first snprintf(cmdline, ...), when its >> result is guaranteed to be overwritten just below? >> >> I'm also dubious about using MAX_PATH here; see the commentary >> about MAXPGPATH in pg_config_manual.h. Also, what's the point of >> using MAX_PATH when the result is going to be transferred into >> cmdline (with a hardwired size of 1024)? > > Fair points, I'll wait and see if Bryan is free to write a patch on > Monday (US), and otherwise write one myself. I will write a patch tonight. This was my sloppiness from doing incremental changes and not cleaning up behind myself. I'll clean it up. Thanks for the checks... -- Bryan Green EDB: https://www.enterprisedb.com