projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bc3039
)
Ecore_Exe: ifdef prctl usage
author
Bruno Dilly
<bdilly@profusion.mobi>
Sat, 8 Oct 2011 01:17:19 +0000
(
01:17
+0000)
committer
Bruno Dilly
<bdilly@profusion.mobi>
Sat, 8 Oct 2011 01:17:19 +0000
(
01:17
+0000)
SVN revision: 63916
legacy/ecore/src/lib/ecore/ecore_exe.c
patch
|
blob
|
history
diff --git
a/legacy/ecore/src/lib/ecore/ecore_exe.c
b/legacy/ecore/src/lib/ecore/ecore_exe.c
index
568a35c
..
239063f
100644
(file)
--- a/
legacy/ecore/src/lib/ecore/ecore_exe.c
+++ b/
legacy/ecore/src/lib/ecore/ecore_exe.c
@@
-14,7
+14,9
@@
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
-#include <sys/prctl.h>
+#ifdef __linux__
+# include <sys/prctl.h>
+#endif
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
@@
-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))