Crossfire Server, Branches 1.12
R18729
|
#include <sys/unistd.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
Go to the source code of this file.
Macros | |
#define | CRASH_COUNT 10 |
#define | CRASH_INTERVAL 30 |
#define | CROSSFIRE_SERVER "/usr/stud/stieber/bin/server" |
#define | CROSSFIRE_TMPDIR "/usr/stud/stieber/crossfire/tmp/" |
#define | ERROR_SLEEP 30 |
#define | USE_WATCHDOG |
Functions | |
int | main (void) |
void | SignalHandler (int Unused) |
Variables | |
int | Pipe [2] |
#define CRASH_COUNT 10 |
Definition at line 39 of file crossfire-loop.c.
Referenced by main().
#define CRASH_INTERVAL 30 |
Definition at line 40 of file crossfire-loop.c.
Referenced by main().
#define CROSSFIRE_SERVER "/usr/stud/stieber/bin/server" |
Definition at line 31 of file crossfire-loop.c.
Referenced by main().
#define CROSSFIRE_TMPDIR "/usr/stud/stieber/crossfire/tmp/" |
Definition at line 34 of file crossfire-loop.c.
Referenced by main().
#define ERROR_SLEEP 30 |
Definition at line 43 of file crossfire-loop.c.
Referenced by main().
#define USE_WATCHDOG |
Definition at line 42 of file crossfire-loop.c.
int main | ( | void | ) |
Definition at line 76 of file crossfire-loop.c.
References CRASH_COUNT, CRASH_INTERVAL, CROSSFIRE_SERVER, CROSSFIRE_TMPDIR, ERROR_SLEEP, Pipe, SignalHandler(), sleep, and unlink.
void SignalHandler | ( | int | Unused | ) |
Definition at line 67 of file crossfire-loop.c.
References Pipe.
Referenced by main().
int Pipe[2] |
Definition at line 62 of file crossfire-loop.c.
Referenced by main(), and SignalHandler().