forked from enlightenment/efl
Ecore exe: check for prctl header instead of OS
Suggested by vtorri SVN revision: 63987
This commit is contained in:
parent
b531487495
commit
220e9e7a66
|
@ -1116,7 +1116,7 @@ PKG_CHECK_MODULES([EVAS], [evas >= 1.0.0],
|
||||||
|
|
||||||
### Checks for header files
|
### Checks for header files
|
||||||
|
|
||||||
AC_CHECK_HEADERS([sys/select.h])
|
AC_CHECK_HEADERS([sys/select.h sys/prctl.h])
|
||||||
|
|
||||||
EFL_CHECK_PATH_MAX
|
EFL_CHECK_PATH_MAX
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,8 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#ifdef __linux__
|
|
||||||
|
#ifdef HAVE_SYS_PRCTL_H
|
||||||
# include <sys/prctl.h>
|
# include <sys/prctl.h>
|
||||||
#endif
|
#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))
|
if ((flags & ECORE_EXE_TERM_WITH_PARENT))
|
||||||
{
|
{
|
||||||
prctl(PR_SET_PDEATHSIG, SIGTERM);
|
prctl(PR_SET_PDEATHSIG, SIGTERM);
|
||||||
|
|
Loading…
Reference in New Issue