From ce7f5e52754ca16cf3140fe3100c92d6904e5757 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 16 Nov 2016 11:42:44 -0500 Subject: [PATCH] vunshare: close socket after bringing up loopback --- vunshare.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vunshare.c b/vunshare.c index e76a985..274eebc 100644 --- a/vunshare.c +++ b/vunshare.c @@ -62,6 +62,8 @@ static void unshare_net(void) ifr.ifr_flags |= IFF_UP | IFF_RUNNING; if (ioctl(sock, SIOCSIFFLAGS, &ifr) < 0) err(1, "ioctl(SIOCSIFFLAGS) failed"); + + close(sock); } static char **title_argv; -- 2.39.5