Ecore exe: check for prctl header instead of OS

Suggested by vtorri


SVN revision: 63987
This commit is contained in:
Bruno Dilly 2011-10-11 18:19:37 +00:00
parent b531487495
commit 220e9e7a66
2 changed files with 4 additions and 3 deletions

View File

@ -1116,7 +1116,7 @@ PKG_CHECK_MODULES([EVAS], [evas >= 1.0.0],
### Checks for header files
AC_CHECK_HEADERS([sys/select.h])
AC_CHECK_HEADERS([sys/select.h sys/prctl.h])
EFL_CHECK_PATH_MAX

View File

@ -14,7 +14,8 @@
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#ifdef __linux__
#ifdef HAVE_SYS_PRCTL_H
# include <sys/prctl.h>
#endif
@ -1512,7 +1513,7 @@ _ecore_exe_exec_it(const char *exe_cmd, Ecore_Exe_Flags flags)
}
}
#ifdef __linux__
#ifdef HAVE_SYS_PRCTL_H
if ((flags & ECORE_EXE_TERM_WITH_PARENT))
{
prctl(PR_SET_PDEATHSIG, SIGTERM);