diff options
author | Dave Andreoli <dave@gurumeditation.it> | 2018-07-16 20:16:16 +0200 |
---|---|---|
committer | Dave Andreoli <dave@gurumeditation.it> | 2018-07-16 20:16:16 +0200 |
commit | 6aa35011362985ad782217162007fed227ee4df5 (patch) | |
tree | 41fa7f23a79efbcc439b756ab7a01a3e78fd085e | |
parent | 18ca98e66f9e9bec7a0048d44310f016ab2ee76c (diff) |
New 1.21 API: Ecore_Exe_Flags.ECORE_EXE_ISOLATE_IO
just a new enum value
-rw-r--r-- | efl/ecore/efl.ecore_exe.pxi | 10 | ||||
-rw-r--r-- | include/efl.ecore.enums.pxd | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/efl/ecore/efl.ecore_exe.pxi b/efl/ecore/efl.ecore_exe.pxi index 1ebaa86..df472da 100644 --- a/efl/ecore/efl.ecore_exe.pxi +++ b/efl/ecore/efl.ecore_exe.pxi | |||
@@ -45,6 +45,8 @@ cdef exe_flags2str(int value): | |||
45 | flags.append("NOT_LEADER") | 45 | flags.append("NOT_LEADER") |
46 | if value & enums.ECORE_EXE_TERM_WITH_PARENT: | 46 | if value & enums.ECORE_EXE_TERM_WITH_PARENT: |
47 | flags.append("ECORE_EXE_TERM_WITH_PARENT") | 47 | flags.append("ECORE_EXE_TERM_WITH_PARENT") |
48 | if value & enums.ECORE_EXE_ISOLATE_IO: | ||
49 | flags.append("ECORE_EXE_ISOLATE_IO") | ||
48 | return ", ".join(flags) | 50 | return ", ".join(flags) |
49 | 51 | ||
50 | 52 | ||
@@ -303,6 +305,10 @@ cdef class Exe(object): | |||
303 | ECORE_EXE_TERM_WITH_PARENT | 305 | ECORE_EXE_TERM_WITH_PARENT |
304 | Makes child receive SIGTERM when parent dies | 306 | Makes child receive SIGTERM when parent dies |
305 | 307 | ||
308 | ECORE_EXE_ISOLATE_IO | ||
309 | Try and isolate stdin/out and err of the process so it isn't | ||
310 | shared with the parent. Since 1.21 | ||
311 | |||
306 | :type flags: int | 312 | :type flags: int |
307 | :param data: extra data to be associated and available with ``data_get()`` | 313 | :param data: extra data to be associated and available with ``data_get()`` |
308 | 314 | ||
@@ -552,6 +558,10 @@ cdef class Exe(object): | |||
552 | - ECORE_EXE_USE_SH: Use /bin/sh to run the command. | 558 | - ECORE_EXE_USE_SH: Use /bin/sh to run the command. |
553 | - ECORE_EXE_NOT_LEADER Do not use setsid() to have the | 559 | - ECORE_EXE_NOT_LEADER Do not use setsid() to have the |
554 | executed process be its own session leader | 560 | executed process be its own session leader |
561 | - ECORE_EXE_TERM_WITH_PARENT Makes child receive SIGTERM when | ||
562 | parent dies | ||
563 | - ECORE_EXE_ISOLATE_IO Try and isolate stdin/out and err of the | ||
564 | process so it isn't shared with the parent | ||
555 | 565 | ||
556 | :return: set of masks, ORed. | 566 | :return: set of masks, ORed. |
557 | 567 | ||
diff --git a/include/efl.ecore.enums.pxd b/include/efl.ecore.enums.pxd index 1c0e4a5..3f4c04e 100644 --- a/include/efl.ecore.enums.pxd +++ b/include/efl.ecore.enums.pxd | |||
@@ -50,6 +50,7 @@ cdef extern from "Ecore.h": | |||
50 | ECORE_EXE_USE_SH | 50 | ECORE_EXE_USE_SH |
51 | ECORE_EXE_NOT_LEADER | 51 | ECORE_EXE_NOT_LEADER |
52 | ECORE_EXE_TERM_WITH_PARENT | 52 | ECORE_EXE_TERM_WITH_PARENT |
53 | ECORE_EXE_ISOLATE_IO | ||
53 | 54 | ||
54 | ctypedef enum Ecore_Pos_Map: | 55 | ctypedef enum Ecore_Pos_Map: |
55 | ECORE_POS_MAP_LINEAR | 56 | ECORE_POS_MAP_LINEAR |