From: YoungHun Kim Date: Wed, 24 Oct 2018 08:26:34 +0000 (+0900) Subject: Change to daemonize after stream flush X-Git-Tag: submit/tizen/20181102.020303^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1e972d85c2f5c77a63290d023c230359deb5016;p=platform%2Fupstream%2Fmurphy.git Change to daemonize after stream flush Change-Id: I0a049236046db57f4b9aa58d08eeac8664c07419 --- diff --git a/packaging/murphy.spec b/packaging/murphy.spec index 9da1480..0706b1c 100644 --- a/packaging/murphy.spec +++ b/packaging/murphy.spec @@ -3,9 +3,11 @@ %bcond_without pulse %bcond_without ecore %bcond_without glib +%bcond_with dbus %bcond_without telephony %bcond_without websockets %bcond_without smack +%bcond_with sysmon # These are off by default, unless explicitly enabled. # diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 65dee9b..8df12b0 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -291,9 +291,9 @@ int main(int argc, char *argv[], char *envp[]) load_ruleset(ctx); prepare_ruleset(ctx); setup_logging(ctx); - daemonize(ctx); set_linebuffered(stdout); set_nonbuffered(stderr); + daemonize(ctx); run_mainloop(ctx); stop_plugins(ctx);