# 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.
Index: route.c
===================================================================
RCS file: /cvs/src/sbin/route/route.c,v
retrieving revision 1.183
diff -u -p -r1.183 route.c
--- route.c 7 Jun 2016 01:29:38 -0000 1.183
+++ route.c 23 Jun 2016 17:12:25 -0000
@@ -1165,8 +1165,6 @@ rtmsg(int cmd, int flags, int fmask, uin
if (debugonly)
return (0);
if (write(s, &m_rtmsg, l) != l) {
- if (qflag == 0)
- warn("writing to routing socket");
return (-1);
}
if (cmd == RTM_GET) {