[Groonga-commit] groonga/groonga [master] groonga: make pid_file file scope

Back to archive index

null+****@clear***** null+****@clear*****
2012年 4月 3日 (火) 16:17:59 JST


Kouhei Sutou	2012-04-03 16:17:59 +0900 (Tue, 03 Apr 2012)

  New Revision: db87f595676a4af49a14c1ae2ce2082fddabb81a

  Log:
    groonga: make pid_file file scope

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+1 -1)
===================================================================
--- src/groonga.c    2012-04-03 16:09:57 +0900 (d24b3b0)
+++ src/groonga.c    2012-04-03 16:17:59 +0900 (fdac999)
@@ -69,6 +69,7 @@ static int newdb;
 static int useql;
 static int (*do_client)(int argc, char **argv);
 static int (*do_server)(char *path);
+static FILE *pid_file = NULL;
 static const char *pid_file_path = NULL;
 static const char *input_path = NULL;
 
@@ -1907,7 +1908,6 @@ do_daemon(char *path)
   int exit_code;
 #ifndef WIN32
   pid_t pid;
-  FILE *pid_file = NULL;
 
   switch (fork()) {
   case 0:




Groonga-commit メーリングリストの案内
Back to archive index