]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: startup: add O_CLOEXEC flag to open /dev/null
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Sun, 30 Jun 2024 20:58:51 +0000 (22:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:00:58 +0000 (22:00 +0200)
commitdf12791da3bff0c63d37effba62e34722b72d3e8
tree99beae5c5533a70ccc30721ee144544a02d251a3
parent5bbcdc003ab3a48c12f25be84f843f0e5756b1e0
MINOR: startup: add O_CLOEXEC flag to open /dev/null

As master process performs execvp() syscall to handle USR2 and HUP signals in
mworker_reexec(), let's add O_CLOEXEC flag, when we open '/dev/null' in order
to avoid fd leak.

This a preparation step to refactor master-worker logic. See more details in
the next commits.
src/haproxy.c