#include "config.h"
#include "defines.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <pthread.h>
#include <gdome.h>
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/un.h>
#include <sys/wait.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/sem.h>
#include "semaphores.h"
#include "cf_pthread.h"
#include "hashlib.h"
#include "utils.h"
#include "configparser.h"
#include "readline.h"
#include "fo_server.h"
#include "initfinish.h"
#include "serverlib.h"
#include "archiver.h"
Go to the source code of this file.
Functions | |
| void | flsh (int n) |
| void | terminate (int n) |
| void * | archiver_and_writer (void *arg) |
| void | setup_server_infos (void) |
| int | create_shm_sem (t_name_value *shm) |
| int | main (int argc, char *argv[]) |
Variables | |
| int | RUN |
| t_head | head |
This file contains the main program of the forum server.
Definition in file fo_server.c.
|
|
This function runs the archiver and disk writer in a regular intervall
Definition at line 110 of file fo_server.c. |
|
|
This function creates the Shared memory locking semaphore set.
Definition at line 237 of file fo_server.c. |
|
|
This function flushes the file handles of the logfiles. Useful for getting actual information about the state of the server. Activated by sending SIGINT or SIGHUP.
Definition at line 76 of file fo_server.c. |
|
||||||||||||
|
This function is the starting function for the fo_server program. It takes no arguments.
Definition at line 266 of file fo_server.c. |
|
|
This function checks if another fo_server process is running in the actual configuration and writes its PID into the PID file. If a server is already running, it terminates execution Definition at line 147 of file fo_server.c. |
|
|
This function will be called when receiving a signal which says 'Hey, server, terminate!'
Definition at line 98 of file fo_server.c. |
|
|
contains all necessary data Definition at line 68 of file fo_server.c. |
|
|
Run while this variable is != 0 Definition at line 67 of file fo_server.c. |
1.3.5