|
@@ -32,7 +32,6 @@
|
|
|
#include <misc/nsskey.h>
|
|
#include <misc/nsskey.h>
|
|
|
#include <misc/byteorder.h>
|
|
#include <misc/byteorder.h>
|
|
|
#include <misc/loggers_string.h>
|
|
#include <misc/loggers_string.h>
|
|
|
-#include <misc/dead.h>
|
|
|
|
|
#include <system/BLog.h>
|
|
#include <system/BLog.h>
|
|
|
#include <system/BReactor.h>
|
|
#include <system/BReactor.h>
|
|
|
#include <system/BSignal.h>
|
|
#include <system/BSignal.h>
|
|
@@ -53,9 +52,6 @@
|
|
|
#define LOGGER_STDOUT 1
|
|
#define LOGGER_STDOUT 1
|
|
|
#define LOGGER_SYSLOG 2
|
|
#define LOGGER_SYSLOG 2
|
|
|
|
|
|
|
|
-// program dead variable
|
|
|
|
|
-dead_t dead;
|
|
|
|
|
-
|
|
|
|
|
// command-line options
|
|
// command-line options
|
|
|
struct {
|
|
struct {
|
|
|
int help;
|
|
int help;
|
|
@@ -159,9 +155,6 @@ int main (int argc, char *argv[])
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // init dead variable
|
|
|
|
|
- DEAD_INIT(dead);
|
|
|
|
|
-
|
|
|
|
|
// parse command-line arguments
|
|
// parse command-line arguments
|
|
|
if (!parse_arguments(argc, argv)) {
|
|
if (!parse_arguments(argc, argv)) {
|
|
|
fprintf(stderr, "Failed to parse arguments\n");
|
|
fprintf(stderr, "Failed to parse arguments\n");
|
|
@@ -374,9 +367,6 @@ void terminate (void)
|
|
|
// remove signal handler
|
|
// remove signal handler
|
|
|
BSignal_Finish();
|
|
BSignal_Finish();
|
|
|
|
|
|
|
|
- // kill dead variable
|
|
|
|
|
- DEAD_KILL(dead);
|
|
|
|
|
-
|
|
|
|
|
// exit reactor
|
|
// exit reactor
|
|
|
BReactor_Quit(&ss, 1);
|
|
BReactor_Quit(&ss, 1);
|
|
|
}
|
|
}
|