summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-10 20:53:58 +0900
committerCedric Bail <cedric.bail@free.fr>2013-03-10 21:21:19 +0900
commit29299ea2ab2338065514299b0b3f70374e8a79e4 (patch)
tree9b6aa857f514b2b5ae073c442258571ed09e5e69 /src/lib/ecore
parentcf26a36fec320fd7905dcd249ea3ca6eaa780ec5 (diff)
ecore: notify systemd automatically when the main loop is starting.
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index e551ea71e0..df240c1632 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -25,6 +25,10 @@
25#include <fcntl.h> 25#include <fcntl.h>
26#include <sys/time.h> 26#include <sys/time.h>
27 27
28#ifdef HAVE_SYSTEMD
29# include <systemd/sd-daemon.h>
30#endif
31
28#ifdef _MSC_VER 32#ifdef _MSC_VER
29# include <float.h> 33# include <float.h>
30#endif 34#endif
@@ -949,6 +953,9 @@ EAPI void
949ecore_main_loop_begin(void) 953ecore_main_loop_begin(void)
950{ 954{
951 EINA_MAIN_LOOP_CHECK_RETURN; 955 EINA_MAIN_LOOP_CHECK_RETURN;
956#ifdef HAVE_SYSTEMD
957 sd_notify(0, "READY=1");
958#endif
952#ifndef USE_G_MAIN_LOOP 959#ifndef USE_G_MAIN_LOOP
953 _ecore_lock(); 960 _ecore_lock();
954 in_main_loop++; 961 in_main_loop++;