3 |
#include "pdl.h" |
#include "pdl.h" |
4 |
#include "plugin_manager.h" |
#include "plugin_manager.h" |
5 |
|
|
6 |
|
#include <unistd.h> |
7 |
|
|
8 |
|
#ifdef BSD |
9 |
|
#include <sys/ioctl.h> |
10 |
|
#endif |
11 |
|
|
12 |
static const char* _modules_path; /*! Holds the global path to plug-in modules */ |
static const char* _modules_path; /*! Holds the global path to plug-in modules */ |
13 |
void (*EEF_log)(int, const char*, ...); |
void (*EEF_log)(int, const char*, ...); |
14 |
|
|
31 |
* Tries to daemonize the process |
* Tries to daemonize the process |
32 |
*/ |
*/ |
33 |
EES_RC EEF_daemonize(void){ |
EES_RC EEF_daemonize(void){ |
34 |
|
#ifdef BSD |
35 |
|
pid_t pid; |
36 |
|
#endif |
37 |
int fd = 0; |
int fd = 0; |
38 |
|
|
39 |
/* If launched by init there's no need to detach |
/* If launched by init there's no need to detach |