mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Use edelib implementation of daemon() since Solaris family do not provide it.
This commit is contained in:
parent
94fb06d386
commit
200fdd8e4c
@ -28,6 +28,7 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <libhal-storage.h>
|
#include <libhal-storage.h>
|
||||||
#include <edelib/List.h>
|
#include <edelib/List.h>
|
||||||
|
#include <edelib/Missing.h>
|
||||||
|
|
||||||
/* HAL can return NULL as error message if not checked */
|
/* HAL can return NULL as error message if not checked */
|
||||||
#define CHECK_STR(s) ((s != NULL) ? s : "<unknown>")
|
#define CHECK_STR(s) ((s != NULL) ? s : "<unknown>")
|
||||||
@ -327,7 +328,7 @@ int main(int argc, char** argv) {
|
|||||||
#else
|
#else
|
||||||
/* run in background */
|
/* run in background */
|
||||||
if(go_daemon)
|
if(go_daemon)
|
||||||
daemon(0, 0);
|
edelib_daemon(0, 0);
|
||||||
|
|
||||||
DBusError err;
|
DBusError err;
|
||||||
DBusConnection* conn = NULL, *session_conn = NULL;
|
DBusConnection* conn = NULL, *session_conn = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user