-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix (#1587): show pika version #1588
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ output/ | |
# DB | ||
db/ | ||
dump/ | ||
src/dbsync/ | ||
|
||
# third party | ||
gdb.txt | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ | |
#include "include/pika_version.h" | ||
#include "pstd/include/env.h" | ||
|
||
|
||
std::unique_ptr<PikaConf> g_pika_conf; | ||
// todo : change to unique_ptr will coredump | ||
PikaServer* g_pika_server; | ||
|
@@ -67,7 +66,7 @@ static void daemonize() { | |
if (fork()) { | ||
exit(0); /* parent exits */ | ||
} | ||
setsid(); /* create a new session */ | ||
setsid(); /* create a new session */ | ||
} | ||
|
||
static void close_std() { | ||
|
@@ -120,6 +119,7 @@ static void usage() { | |
"usage: pika [-hv] [-c conf/file]\n" | ||
"\t-h -- show this help\n" | ||
"\t-c conf/file -- config file \n" | ||
"\t-v -- show version\n" | ||
AlexStocks marked this conversation as resolved.
Show resolved
Hide resolved
|
||
" example: ./output/bin/pika -c ./conf/pika.conf\n", | ||
version); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Overall, the code patch seems straightforward and free of major issues. Below are a few minor suggestions for improvement:
As for any bug risks, without further context on the larger program and its dependencies, it is difficult to determine if there are any critical implications to this code patch. |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the code patch you provided, it seems that all you did was add a new directory called
src/dbsync/
to your version control system.As such, there is no code that needs reviewing for bugs or improvement suggestions. However, if you have any implementation concerns related to the contents of this new directory, please provide more information and I would be happy to help.