Cleanups and small fixes
This commit is contained in:
14
rmps.c
14
rmps.c
@@ -10,24 +10,22 @@
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/err.h>
|
||||
|
||||
static void rmps_shutdown();
|
||||
static void rmps_shutdown(void);
|
||||
static void signal_handler(int sig);
|
||||
static void set_env();
|
||||
static void set_env(void);
|
||||
static void daemonize(const char *rundir);
|
||||
static void spawn_pidfile(const char *pidfile);
|
||||
static inline int set_reuse_addr(int sockfd);
|
||||
static int open_listener(int port);
|
||||
static void cleanup();
|
||||
static void cleanup(void);
|
||||
static void signal_handler(int sig);
|
||||
//static void show_certs(SSL *ssl);
|
||||
static void load_certificates(SSL_CTX *ctx, const char *certfile,
|
||||
const char *keyfile, const char *cafile);
|
||||
static SSL_CTX* init_server_ctx(const char *cipherlist);
|
||||
//static void servlet(SSL *ssl);
|
||||
|
||||
static int pid_file_handle;
|
||||
|
||||
static void cleanup()
|
||||
static void cleanup(void)
|
||||
{
|
||||
log_trace(VERBOSE, "Deleting pidfile %s", conf.rmps.pidfile);
|
||||
if (unlink(conf.rmps.pidfile) != 0)
|
||||
@@ -56,13 +54,13 @@ static void signal_handler(int sig)
|
||||
}
|
||||
}
|
||||
|
||||
static void rmps_shutdown()
|
||||
static void rmps_shutdown(void)
|
||||
{
|
||||
close(pid_file_handle);
|
||||
cleanup();
|
||||
}
|
||||
|
||||
static void set_env()
|
||||
static void set_env(void)
|
||||
{
|
||||
struct sigaction new_sigaction;
|
||||
sigset_t new_sigset;
|
||||
|
||||
Reference in New Issue
Block a user