Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5e2022bb
Commit
5e2022bb
authored
Mar 22, 2010
by
antirez
Browse files
Merge branch 'issue_191' of
git://github.com/gnrfan/redis
parents
a9c723ea
42ab0172
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
5e2022bb
...
...
@@ -1102,6 +1102,8 @@ static dictType keylistDictType = {
dictListDestructor /* val destructor */
};
static void version();
/* ========================= Random utility functions ======================= */
/* Redis generally does not try to recover from out of memory conditions
...
...
@@ -9158,11 +9160,19 @@ static void daemonize(void) {
}
}
static void version() {
printf("Redis server version %s\n", REDIS_VERSION);
exit(0);
}
int main(int argc, char **argv) {
time_t start;
initServerConfig();
if (argc == 2) {
if ((strcmp(argv[1], "-v") == 0) || (strcmp(argv[1], "--version") == 0)) {
version();
}
resetServerSaveParams();
loadServerConfig(argv[1]);
} else if (argc > 2) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment