Date: Thu, 5 Nov 2015 19:15:39 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290408 - head/usr.bin/rctl Message-ID: <201511051915.tA5JFd6M097103@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Thu Nov 5 19:15:39 2015 New Revision: 290408 URL: https://svnweb.freebsd.org/changeset/base/290408 Log: Make rctl(8) use more reasonable buffer size for retrieving the rules. Reviewed by: mjg@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/rctl/rctl.c Modified: head/usr.bin/rctl/rctl.c ============================================================================== --- head/usr.bin/rctl/rctl.c Thu Nov 5 17:58:18 2015 (r290407) +++ head/usr.bin/rctl/rctl.c Thu Nov 5 19:15:39 2015 (r290408) @@ -48,7 +48,7 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <string.h> -#define RCTL_DEFAULT_BUFSIZE 4096 +#define RCTL_DEFAULT_BUFSIZE 128 * 1024 static id_t parse_user(const char *s)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511051915.tA5JFd6M097103>