projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7821b09
)
Call libcitadel init
author
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 3 Jul 2012 22:41:10 +0000
(
00:41
+0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 3 Jul 2012 22:41:10 +0000
(
00:41
+0200)
citadel/server_main.c
patch
|
blob
|
history
diff --git
a/citadel/server_main.c
b/citadel/server_main.c
index b0cd8f167b00be70be9f76b5822e4191afd2583d..7c6a46434e8a51e7669f9029eff6d8a9dc701920 100644
(file)
--- a/
citadel/server_main.c
+++ b/
citadel/server_main.c
@@
-89,6
+89,7
@@
void go_threading(void);
*/
int main(int argc, char **argv)
{
*/
int main(int argc, char **argv)
{
+ size_t basesize = 64;
char facility[32];
int a; /* General-purpose variables */
struct passwd pw, *pwp = NULL;
char facility[32];
int a; /* General-purpose variables */
struct passwd pw, *pwp = NULL;
@@
-114,7
+115,7
@@
int main(int argc, char **argv)
InitializeMasterTSD();
/* parse command-line arguments */
InitializeMasterTSD();
/* parse command-line arguments */
- while ((a=getopt(argc, argv, "l:dh:x:t:Dr")) != EOF) switch(a) {
+ while ((a=getopt(argc, argv, "l:dh:x:t:
B:
Dr")) != EOF) switch(a) {
case 'l':
safestrncpy(facility, optarg, sizeof(facility));
case 'l':
safestrncpy(facility, optarg, sizeof(facility));
@@
-143,6
+144,9
@@
int main(int argc, char **argv)
case 't': /* deprecated */
break;
case 't': /* deprecated */
break;
+ case 'B': /* Basesize */
+ basesize = atoi(optarg);
+ break;
case 'D':
dbg = 1;
case 'D':
dbg = 1;
@@
-165,7
+169,7
@@
int main(int argc, char **argv)
);
exit(1);
}
);
exit(1);
}
-
+ StartLibCitadel(basesize);
openlog("citserver",
( running_as_daemon ? (LOG_PID) : (LOG_PID | LOG_PERROR) ),
syslog_facility
openlog("citserver",
( running_as_daemon ? (LOG_PID) : (LOG_PID | LOG_PERROR) ),
syslog_facility