svn commit: r290408 - head/usr.bin/rctl

Edward Tomasz Napierala trasz at FreeBSD.org
Thu Nov 5 19:15:40 UTC 2015


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)


More information about the svn-src-head mailing list