]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Avoid SIGUSR1 to SIGHUP remapping when the configuration is read from stdin
authorArne Schwabe <arne@rfc2549.org>
Fri, 19 Jul 2024 13:10:16 +0000 (15:10 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 17 Sep 2024 10:56:08 +0000 (12:56 +0200)
commitb620025b9570a3d66ad3598dc22aa1b07c90fa31
tree3919133d393400c6744c67209c63ca14f97771f1
parent14d2db6cd41fb6414992869caf109972d7a8275e
Avoid SIGUSR1 to SIGHUP remapping when the configuration is read from stdin

If the configuration is read from stdin, we cannot reread the configuration
as stdin provides the configuration only once. So whenever we hit the
"close_context usr1 to hup" logic, the OpenVPN process will fail as tries
to restart with an empty configuration.

While OpenVPN tries to block  USR1 from normal unix signal, I have observed
cases in my app which sends USR1 from management interface where the
CC_HARD_USR1_TO_HUP logic is trigger and breaking the OpenVPN process.

Change-Id: Icfc179490d6821e22d14817941fb0bad667c713f
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20240719131016.75042-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28941.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/openvpn.c