Files
pokerth/src/chatcleaner/chatcleaner.cpp
T
lotodore 02518c67b2 Reformatting code using Kernighan & Ritchie style, tabs, tab width=4.
Command line: astyle --style=kr --indent=force-tab=4 --lineend=linux -n -r <file names>
2011-02-11 20:02:08 +00:00

23 lines
346 B
C++

#include <QtCore/QCoreApplication>
#include "cleanerserver.h"
#ifdef _WIN32
#include <process.h>
#else
#include <unistd.h>
#ifndef daemon
int daemon(int, int);
#endif
#endif
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
CleanerServer server;
#ifndef _WIN32
if (daemon(0, 0) != 0)
return -1;
#endif
return a.exec();
}