]> git.stg.codes - stg.git/commitdiff
Remove unused headers and add variable declaration in stargazer's
authorMaxim Mamontov <faust.madf@gmail.com>
Tue, 20 Sep 2011 09:19:02 +0000 (12:19 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Tue, 20 Sep 2011 09:19:02 +0000 (12:19 +0300)
main.cpp

projects/stargazer/main.cpp

index 3839ae8edb9495da7808fef22227a54744d7fdfc..a8678893c4d7935e1c84e66aa3240812e1e700d9 100644 (file)
@@ -46,9 +46,7 @@
 #include "stg/plugin.h"
 #include "stg/logger.h"
 #include "stg/scriptexecuter.h"
-#include "stg/conffiles.h"
 #include "stg/version.h"
-#include "stg/pinger.h"
 #include "stg_timer.h"
 #include "settings_impl.h"
 #include "users_impl.h"
@@ -161,11 +159,11 @@ int ForkAndWait(const string &)
 #endif
 {
 #ifndef NO_DAEMON
-stgChildPid = fork();
+pid_t childPid = fork();
 string startFile = confDir + START_FILE;
 unlink(startFile.c_str());
 
-switch (stgChildPid)
+switch (childPid)
     {
     case -1:
         return -1;