]> git.eshelyaron.com Git - emacs.git/commit
Use SetHandleInformation to set NOINHERIT in UCRT64
authorKien Nguyen <kien.n.quang@gmail.com>
Wed, 7 Aug 2024 17:39:38 +0000 (10:39 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sun, 11 Aug 2024 07:31:31 +0000 (09:31 +0200)
commit2f51894279f114cfb50dd18fc9b8338b00d2ff80
tree807964256a2d50110be3fcaafc1493d326248256
parent06d1c11dde555551c74941b70f0c9d1add79f720
Use SetHandleInformation to set NOINHERIT in UCRT64

* src/w32.c (init_ntproc) [_UCRT]: Use SetHandleInformation to
prevent standard handles from being inherited, instead of relying
on MSVCRT-only behavior.  For the details of the problem, see
https://lists.gnu.org/archive/html/emacs-devel/2024-07/msg01129.html.

Copyright-paperwork-exempt: yes
(cherry picked from commit de7de561e1e3a973581b6993b3cc0074ff0bf91c)
src/w32.c