diff options
| author | vitalyisaev <[email protected]> | 2023-11-14 09:58:56 +0300 |
|---|---|---|
| committer | vitalyisaev <[email protected]> | 2023-11-14 10:20:20 +0300 |
| commit | c2b2dfd9827a400a8495e172a56343462e3ceb82 (patch) | |
| tree | cd4e4f597d01bede4c82dffeb2d780d0a9046bd0 /library/python/prctl | |
| parent | d4ae8f119e67808cb0cf776ba6e0cf95296f2df7 (diff) | |
YQ Connector: move tests from yql to ydb (OSS)
Перенос папки с тестами на Коннектор из папки yql в папку ydb (синхронизируется с github).
Diffstat (limited to 'library/python/prctl')
| -rw-r--r-- | library/python/prctl/prctl.pyx | 14 | ||||
| -rw-r--r-- | library/python/prctl/ya.make | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/library/python/prctl/prctl.pyx b/library/python/prctl/prctl.pyx new file mode 100644 index 00000000000..707a79c22f1 --- /dev/null +++ b/library/python/prctl/prctl.pyx @@ -0,0 +1,14 @@ +cdef extern from "<sys/prctl.h>": + int prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5); + + +PR_SET_PDEATHSIG = 1 +PR_SET_CHILD_SUBREAPER = 36 + + +def set_pdeathsig(signum): + return prctl(PR_SET_PDEATHSIG, signum, 0, 0, 0) + + +def set_child_subreaper(val): + return prctl(PR_SET_CHILD_SUBREAPER, val, 0, 0, 0) diff --git a/library/python/prctl/ya.make b/library/python/prctl/ya.make new file mode 100644 index 00000000000..163626e91db --- /dev/null +++ b/library/python/prctl/ya.make @@ -0,0 +1,9 @@ +PY23_LIBRARY() + +PY_SRCS( + prctl.pyx +) + +BUILD_ONLY_IF(WARNING LINUX) + +END() |
