#include "C4Include.h"
#include "game/C4Application.h"
#include "C4Version.h"
#include "network/C4Network2.h"
#include <unistd.h>
#include <fcntl.h>
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 207 of file ClonkMain.cpp.
211 printf(
"Do not run %s as root!\n", argc ? argv[0] :
"this program");
215 backward::SignalHandling sh;
216 #elif defined(HAVE_SIGNAL_H)
218 sa.sa_sigaction = crash_handler;
219 sigemptyset(&sa.sa_mask);
220 sa.sa_flags = SA_SIGINFO;
222 sigaction(SIGINT, &sa,
nullptr);
223 sigaction(SIGTERM, &sa,
nullptr);
224 sigaction(SIGHUP, &sa,
nullptr);
226 sa.sa_flags |= SA_RESETHAND;
227 sigaction(SIGBUS, &sa,
nullptr);
228 sigaction(SIGILL, &sa,
nullptr);
229 sigaction(SIGSEGV, &sa,
nullptr);
230 sigaction(SIGABRT, &sa,
nullptr);
231 sigaction(SIGFPE, &sa,
nullptr);
const int C4XRV_Completed
C4Application Application
bool Init(int argc, char *argv[])
References Application, C4XRV_Failure, C4Application::Clear(), C4AbstractApp::Init(), C4Application::restartAtEnd, and C4AbstractApp::Run().