From 8f842454d87af869deec6677ad214c2b36295c4c Mon Sep 17 00:00:00 2001 From: bdilly Date: Sat, 8 Oct 2011 01:17:19 +0000 Subject: [PATCH] Ecore_Exe: ifdef prctl usage git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@63916 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore/ecore_exe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore/ecore_exe.c b/src/lib/ecore/ecore_exe.c index 568a35c..239063f 100644 --- a/src/lib/ecore/ecore_exe.c +++ b/src/lib/ecore/ecore_exe.c @@ -14,7 +14,9 @@ #include #include #include -#include +#ifdef __linux__ +# include +#endif #ifdef HAVE_SYS_WAIT_H # include @@ -1510,10 +1512,12 @@ _ecore_exe_exec_it(const char *exe_cmd, Ecore_Exe_Flags flags) } } +#ifdef __linux__ if ((flags & ECORE_EXE_TERM_WITH_PARENT)) { prctl(PR_SET_PDEATHSIG, SIGTERM); } +#endif if (!(flags & ECORE_EXE_NOT_LEADER)) setsid(); if ((flags & ECORE_EXE_USE_SH)) -- 2.7.4