[php-src] PR #24376: ext/session: Open session files with O_CLOEXEC

From: Date: Fri, 16 Oct 2026 18:16:27 +0000
Subject: [php-src] PR #24376: ext/session: Open session files with O_CLOEXEC
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-39510@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/24376 Author: jorgsowa Set close-on-exec atomically when opening the session file instead of issuing a separate fcntl(F_SETFD) call afterwards. This saves one syscall per request and closes the window in which the descriptor could leak into a child process forked by another thread. The fcntl() fallback is kept for platforms without O_CLOEXEC.

« previous php.git-pulls (#39510) next »