projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wait for bots to be disconnected on shutdown
[NeonServV5.git]
/
src
/
main.h
diff --git
a/src/main.h
b/src/main.h
index f429b67da41b3b02d7676c19be16ecaa175df9d5..85e4fd8e48af5a8c07a4826bce37eb4aed2d6fe9 100644
(file)
--- a/
src/main.h
+++ b/
src/main.h
@@
-18,8
+18,27
@@
#define _main_h
#include "overall.h"
#define _main_h
#include "overall.h"
+struct ProcessState {
+ time_t start_time;
+ int running : 1;
+ int restart : 1;
+ int run_as_daemon : 1;
+ int daemonized : 1;
+ int loglevel : 8;
+ int loaded_config : 1;
+ int running_threads : 8;
+
+ int argc;
+ char **argv;
+
+ char config[MAXLEN];
+ char pidfile[MAXLEN];
+};
+
#ifndef DND_FUNCTIONS
#ifndef DND_FUNCTIONS
+extern struct ProcessState process_state;
+
#ifdef HAVE_THREADS
extern pthread_mutex_t cache_sync;
extern pthread_mutex_t whohandler_sync, whohandler_mass_sync;
#ifdef HAVE_THREADS
extern pthread_mutex_t cache_sync;
extern pthread_mutex_t whohandler_sync, whohandler_mass_sync;