|
@@ -112,7 +112,7 @@ int xioerror(Display *disp) {
|
|
|
void CatchSignal(int sig) {
|
|
|
cerr << APPNAME << ": unexpected signal " << sig << endl;
|
|
|
|
|
|
- if (LoginApp->serverStarted)
|
|
|
+ if (LoginApp->isServerStarted())
|
|
|
LoginApp->StopServer();
|
|
|
|
|
|
LoginApp->RemoveLock();
|
|
@@ -1138,6 +1138,11 @@ void App::RemoveLock() {
|
|
|
remove(cfg->getOption("lockfile").c_str());
|
|
|
}
|
|
|
|
|
|
+// Get server start check flag.
|
|
|
+bool App::isServerStarted() {
|
|
|
+ return serverStarted;
|
|
|
+}
|
|
|
+
|
|
|
// Redirect stdout and stderr to log file
|
|
|
void App::OpenLog() {
|
|
|
FILE *log = fopen (cfg->getOption("logfile").c_str(),"a");
|