On Thu, 23 Jun 2016 13:13:57 -0400, "Ted Unangst" wrote:
> # route delete 1.1.1.1
> route: writing to routing socket: No such process
> delete host 1.1.1.1: not in table
>
> The first error is unnecessary and misleading. It comes from the rtmsg()
> function, but another error will be printed by the caller, which will also
> perform correct errno translation.
With this change no warning will be written for "route get". Is that
desirable? Perhaps the warning should just be moved, ala:
if (*cmd == 'g') {
if (qflag == 0)
warn("writing to routing socket");
exit(0);
}
- todd