ginsbach 9992d68aff Make sure the get command always exits non-zero on error. This makes things
like the following work as expected.

#!/bin/sh

if ! route -sn get default >/dev/null 2>&1; then
	echo default gateway not set
	exit 1
fi
echo default gateway set

Handle routing socket write(2) errors when they occur.  This produces
better diagnostics by allowing for handling of the special route errno
values ESRCH, EBUSY, and ENOBUFS even with the quiet (-q) option or
when doing a get command.
2005-08-12 21:23:06 +00:00
..
2005-06-27 03:07:45 +00:00
2005-06-27 01:37:32 +00:00
2005-06-27 01:25:35 +00:00
2005-06-27 02:49:32 +00:00
2005-08-11 20:56:57 +00:00
2005-07-01 17:07:33 +00:00
2005-06-27 02:56:20 +00:00
2005-06-27 02:05:30 +00:00
2005-06-27 02:03:28 +00:00