diff options
| author | Jon duSaint | 2022-11-27 12:43:43 -0800 |
|---|---|---|
| committer | Jon duSaint | 2022-11-27 12:43:43 -0800 |
| commit | e5b30233366fa793d138ff580c9037691c11f318 (patch) | |
| tree | 7adb4dbe2dbb188205b59145ecf5eefc1560f0c3 | |
| parent | b7890d06f467a0b5e0ca7f7753120aec1cc23260 (diff) | |
netmon: ifconfig works better when you tell it what interface to use
| -rw-r--r-- | jobmon/netmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |
