projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove autogenerated doxygen comments for commands.
[paraslash.git]
/
server.c
diff --git
a/server.c
b/server.c
index dfac4c588910bfbbf3ae1469d26992849b811647..0f2967b3317e13f5272964fca46f136d44774bfa 100644
(file)
--- a/
server.c
+++ b/
server.c
@@
-65,9
+65,9
@@
#include <signal.h>
#include <dirent.h>
#include <sys/time.h>
#include <signal.h>
#include <dirent.h>
#include <sys/time.h>
-#include <openssl/rc4.h>
#include <regex.h>
#include <osl.h>
#include <regex.h>
#include <osl.h>
+#include <stdbool.h>
#include "para.h"
#include "error.h"
#include "para.h"
#include "error.h"
@@
-146,17
+146,14
@@
static int want_colors(void)
static void init_colors_or_die(void)
{
static void init_colors_or_die(void)
{
- int
ret,
i;
+ int i;
if (!want_colors())
return;
daemon_set_flag(DF_COLOR_LOG);
daemon_set_default_log_colors();
if (!want_colors())
return;
daemon_set_flag(DF_COLOR_LOG);
daemon_set_default_log_colors();
- for (i = 0; i < conf.log_color_given; i++) {
- ret = daemon_set_log_color(conf.log_color_arg[i]);
- if (ret < 0)
- exit(EXIT_FAILURE);
- }
+ for (i = 0; i < conf.log_color_given; i++)
+ daemon_set_log_color_or_die(conf.log_color_arg[i]);
}
/*
}
/*
@@
-428,6
+425,7
@@
static void init_server_command_task(int argc, char **argv)
if (ret < 0)
goto err;
add_close_on_fork_list(sct->listen_fd); /* child doesn't need the listener */
if (ret < 0)
goto err;
add_close_on_fork_list(sct->listen_fd); /* child doesn't need the listener */
+ sprintf(sct->task.status, "server command task");
register_task(&sct->task);
return;
err:
register_task(&sct->task);
return;
err: