]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
tun: freebsd: become controlling process when reopening tun FD
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 19 Apr 2021 21:01:36 +0000 (15:01 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 19 Apr 2021 21:02:44 +0000 (15:02 -0600)
commit0687dc06c873d4dac0b604d642d724c2f5abb6b6
treef4c146645ae88c5b9d0f1405f39ed5f76d8482d1
parent71aefa374d141776abfb8dede5c3af3fe796842e
tun: freebsd: become controlling process when reopening tun FD

When we pass the TUN FD to the child, we have to call TUNSIFPID;
otherwise when we close the device, we get a splat in dmesg.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tun/tun_freebsd.go