From 33928a01577ab962c599e7a04a7f59898198a9d3 Mon Sep 17 00:00:00 2001 From: Peter Chan Date: Mon, 5 Jun 2023 13:20:39 +0800 Subject: [PATCH] fix (#1587) (#1588) --- .gitignore | 1 + src/pika.cc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 15efa9bb27..9766af4516 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,7 @@ output/ # DB db/ dump/ +src/dbsync/ # third party gdb.txt diff --git a/src/pika.cc b/src/pika.cc index d879d001a3..86418c301d 100644 --- a/src/pika.cc +++ b/src/pika.cc @@ -17,7 +17,6 @@ #include "include/pika_version.h" #include "pstd/include/env.h" - std::unique_ptr 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" " example: ./output/bin/pika -c ./conf/pika.conf\n", version); }