Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ATX735 authored Jun 5, 2023
1 parent 0286694 commit 33928a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ output/
# DB
db/
dump/
src/dbsync/

# third party
gdb.txt
Expand Down
4 changes: 2 additions & 2 deletions src/pika.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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"
" example: ./output/bin/pika -c ./conf/pika.conf\n",
version);
}
Expand Down

0 comments on commit 33928a0

Please sign in to comment.