]> git.ipfire.org Git - thirdparty/openvpn.git/commit
mac dns: do not run dns-updown in parallel
authorHeiko Hund <heiko@ist.eigentlich.net>
Fri, 11 Jul 2025 10:07:00 +0000 (12:07 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 15 Jul 2025 14:08:44 +0000 (16:08 +0200)
commitbc2c74291b8fce3f7a64346753d56f18cd182886
tree1c7968d405f2ffd96a40e69004dd37c517e4f4ad
parentc1f44ea8a24754139beee8758c15657fe367cbb0
mac dns: do not run dns-updown in parallel

In case more than one openvpn connection is coming up or going down at
the same time, there is potential for breakage, since the operations
performed are not atomic.

Introduce a locking mechanism, which let's scripts run in sequence, to
prevent races between them.

Change-Id: I7adfaa08df6a17545cca8264d7230b5e65e49719
Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Message-Id: <20250711100700.241668-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32108.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
distro/dns-scripts/macos-dns-updown.sh