[issue12187] subprocess.wait() with a timeout uses polling on POSIX

STINNER Victor report at bugs.python.org
Sat Oct 12 16:09:58 CEST 2013


STINNER Victor added the comment:

On Linux, it possible to watch processes using a netlink socket:
http://www.outflux.net/blog/archives/2010/07/01/reporting-all-execs/

Example:
http://users.suse.com/~krahmer/exec-notify.c

Python binding (written in Cython) for proc connector:
http://debathena.mit.edu/trac/browser/trunk/debathena/debathena/metrics/debathena/metrics/connector.pyx

There is just a minor limitation: you must be root (CAP_NET_ADMIN) to use this interface...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12187>
_______________________________________


More information about the Python-bugs-list mailing list