projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename chunk option from -m to -a -- tobi
[rrdtool.git]
/
src
/
rrd_daemon.c
diff --git
a/src/rrd_daemon.c
b/src/rrd_daemon.c
index
9b8d9ee
..
ef6d83c
100644
(file)
--- a/
src/rrd_daemon.c
+++ b/
src/rrd_daemon.c
@@
-2780,7
+2780,7
@@
static int read_options (int argc, char **argv) /* {{{ */
gid_t socket_group = (gid_t)-1;
mode_t socket_permissions = (mode_t)-1;
gid_t socket_group = (gid_t)-1;
mode_t socket_permissions = (mode_t)-1;
- while ((option = getopt(argc, argv, "gl:s:m:P:f:w:z:t:Bb:p:Fj:
m
:h?")) != -1)
+ while ((option = getopt(argc, argv, "gl:s:m:P:f:w:z:t:Bb:p:Fj:
a
:h?")) != -1)
{
switch (option)
{
{
switch (option)
{
@@
-3088,7
+3088,7
@@
static int read_options (int argc, char **argv) /* {{{ */
}
break;
}
break;
- case '
m
':
+ case '
a
':
{
int temp = atoi(optarg);
if (temp > 0)
{
int temp = atoi(optarg);
if (temp > 0)
@@
-3096,7
+3096,7
@@
static int read_options (int argc, char **argv) /* {{{ */
else
{
fprintf(stderr, "Invalid allocation size: %s\n", optarg);
else
{
fprintf(stderr, "Invalid allocation size: %s\n", optarg);
-
status =
10;
+
return
10;
}
}
break;
}
}
break;
@@
-3127,6
+3127,7
@@
static int read_options (int argc, char **argv) /* {{{ */
"for that group)\n"
" -m <mode> File permissions (octal) of all following UNIX "
"sockets\n"
"for that group)\n"
" -m <mode> File permissions (octal) of all following UNIX "
"sockets\n"
+ " -a <size> Memory allocation chunk size. Default is 1."
"\n"
"For more information and a detailed description of all options "
"please refer\n"
"\n"
"For more information and a detailed description of all options "
"please refer\n"