seveas / python-prctl

Wrapping prctl for python

Home Page:http://packages.python.org/python-prctl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prctl.set_ptracer_any() is not working

kuenishi opened this issue · comments

Seems it's empty function, not calling the system call. I'm not familiar with tricks to define functions and just opening an issue. One possible fix is to define set_ptracer_any() properly and the other is to make constant prctl.PR_SET_PTRACER_ANY available.

$ strace -e prctl  python -c 'import prctl; prctl.set_ptracer_any()'
+++ exited with 0 +++
$ strace -e prctl  python -c 'import prctl; prctl.set_ptracer(0)'
prctl(PR_SET_PTRACER, 0)                = 0
+++ exited with 0 +++
$ pip list | grep prctl
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
python-prctl (1.6.1)

Thanks, that's now fixed in aa658ab