Konstantin Belousov 57c2505e65 On error, sbuf_bcat() returns -1. Some callers returned this -1 to
the upper layers, which interpret it as errno value, which happens to
be ERESTART.  The result was spurious restarts of the sysctls in loop,
e.g. kern.proc.proc, instead of returning ENOMEM to caller.

Convert -1 from sbuf_bcat() to ENOMEM, when returning to the callers
expecting errno.

In collaboration with:	pho
Sponsored by:	The FreeBSD Foundation (kib)
MFC after:	1 week
2014-10-05 17:35:59 +00:00
..
2014-09-23 02:56:40 +00:00
2014-10-04 18:35:00 +00:00
2014-03-18 21:34:11 +00:00
2014-10-05 02:16:53 +00:00
2014-10-04 18:35:00 +00:00
2014-09-03 08:40:16 +00:00
2014-07-07 00:27:09 +00:00
2014-03-14 06:29:43 +00:00
2014-09-17 17:43:32 +00:00
2014-06-26 13:57:44 +00:00
2014-05-01 22:28:14 +00:00
2014-08-11 15:06:07 +00:00
2014-03-18 21:34:11 +00:00
2014-03-18 21:34:11 +00:00
2014-08-03 22:37:21 +00:00