Use edelib implementation of daemon() since Solaris family do not provide it.

This commit is contained in:
Sanel Zukan 2009-11-17 12:39:38 +00:00
parent 94fb06d386
commit 200fdd8e4c

View File

@ -28,6 +28,7 @@
#include <signal.h>
#include <libhal-storage.h>
#include <edelib/List.h>
#include <edelib/Missing.h>
/* HAL can return NULL as error message if not checked */
#define CHECK_STR(s) ((s != NULL) ? s : "<unknown>")
@ -327,7 +328,7 @@ int main(int argc, char** argv) {
#else
/* run in background */
if(go_daemon)
daemon(0, 0);
edelib_daemon(0, 0);
DBusError err;
DBusConnection* conn = NULL, *session_conn = NULL;