aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorMatthew D Fleming <mdf@FreeBSD.org>2010-09-10 16:42:16 +0000
committerMatthew D Fleming <mdf@FreeBSD.org>2010-09-10 16:42:16 +0000
commit4d369413e19e5195fe4babcb74980c4cff21df03 (patch)
treee9bea66185b980482df09793bce47717d6df59f2 /sys/kern/kern_sig.c
parent6a4e245b76e19c5a09b70face2ea9f9e34347469 (diff)
downloadsrc-4d369413e19e5195fe4babcb74980c4cff21df03.tar.gz
src-4d369413e19e5195fe4babcb74980c4cff21df03.zip
Replace sbuf_overflowed() with sbuf_error(), which returns any error
code associated with overflow or with the drain function. While this function is not expected to be used often, it produces more information in the form of an errno that sbuf_overflowed() did.
Notes
Notes: svn path=/head/; revision=212425
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index f54d59e59f2b..d315ff1a4016 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -3093,7 +3093,7 @@ expand_name(const char *name, uid_t uid, pid_t pid, struct thread *td,
sbuf_printf(&sb, GZ_SUFFIX);
}
#endif
- if (sbuf_overflowed(&sb)) {
+ if (sbuf_error(&sb) != 0) {
log(LOG_ERR, "pid %ld (%s), uid (%lu): corename is too "
"long\n", (long)pid, name, (u_long)uid);
nomem: