Start chatcleaner as daemon.
This commit is contained in:
@@ -1,9 +1,21 @@
|
||||
#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
|
||||
daemon(0, 0);
|
||||
#endif
|
||||
return a.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user