From e5b30233366fa793d138ff580c9037691c11f318 Mon Sep 17 00:00:00 2001 From: Jon duSaint Date: Sun, 27 Nov 2022 12:43:43 -0800 Subject: netmon: ifconfig works better when you tell it what interface to use --- jobmon/netmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jobmon/netmon.c') diff --git a/jobmon/netmon.c b/jobmon/netmon.c index 6c2b13b..b571f17 100644 --- a/jobmon/netmon.c +++ b/jobmon/netmon.c @@ -130,7 +130,7 @@ configure (int af, char *interface) { if ((p = fork ()) == -1) die ("fork failure: %s", strerror (errno)); if (p == 0) { - execl ("/sbin/ifconfig", "ifconfig", (af == AF_INET) ? "inet" : "inet6", "autoconf", NULL); + execl ("/sbin/ifconfig", "ifconfig", interface, (af == AF_INET) ? "inet" : "inet6", "autoconf", NULL); die ("exec failure: %s", strerror (errno)); } -- cgit v1.2.3