]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg-quick: kill route monitor when loop terminates
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 21 Apr 2021 03:31:45 +0000 (21:31 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 21 Apr 2021 03:36:19 +0000 (21:36 -0600)
commit96e42feb3f41e2161141d4958e2637d9dee6f90a
treea261fe6e018748e093f1718eaca7afb9ccc970bb
parent3124afbea3c7e04e89ad98db4d1d621f491b531a
wg-quick: kill route monitor when loop terminates

If the route monitor doesn't attempt to write more to stdout, then this
leaves a process hanging around. Kill it explicitly. We also switch to
using exec in the process substitution, to reduce a bash process.

Closes: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255286
Reported-by: Christos Chatzaras <chris@cretaforce.gr>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/darwin.bash
src/wg-quick/freebsd.bash
src/wg-quick/openbsd.bash