summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-03-12 12:55:52 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-03-12 15:58:43 +0900
commit376e83c0d50d062aadc56873a7c2ec630d9cf701 (patch)
treec0b986fd447e0c393df7ff378f54427a9a669986 /src/lib/ecore
parentc945896c263821cd82128dfb69a11f7d6110daac (diff)
ecore: don't propagate systemd state to child process.
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_exe.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_exe.c b/src/lib/ecore/ecore_exe.c
index b699656951..a01087fa54 100644
--- a/src/lib/ecore/ecore_exe.c
+++ b/src/lib/ecore/ecore_exe.c
@@ -20,6 +20,10 @@
20# include <sys/wait.h> 20# include <sys/wait.h>
21#endif 21#endif
22 22
23#ifdef HAVE_SYSTEMD
24# include <systemd/sd-daemon.h>
25#endif
26
23#include "Ecore.h" 27#include "Ecore.h"
24#include "ecore_private.h" 28#include "ecore_private.h"
25 29
@@ -485,6 +489,9 @@ ecore_exe_pipe_run(const char *exe_cmd,
485 } 489 }
486 else if (pid == 0) /* child */ 490 else if (pid == 0) /* child */
487 { 491 {
492#ifdef HAVE_SYSTEMD
493 unsetenv("NOTIFY_SOCKET");
494#endif
488 if (run_pri != ECORE_EXE_PRIORITY_INHERIT) 495 if (run_pri != ECORE_EXE_PRIORITY_INHERIT)
489 { 496 {
490#ifdef PRIO_PROCESS 497#ifdef PRIO_PROCESS