New submission from donald petravick: hi, we use python for the Dark Energy Survey and use the subprocess module to run a variety of programs, which we do not control. One concern we have is to monitor system information such as whether the code causes swapping. It's be really useful if
-- The Pipe object (and similar objectsI in the subprocess module could .... - have waits in unix implemented by os.wait4() for unix, instead of os.waitpid() - have an new data member, rusage, make the resource usage available to the caller. An additional comment is that all of the wait() family of system calls are implemented in terms of wait4, and there is an argument that hiding usage has no effective cost. There is a wait(self,...) method in pipe. it seems a simple change to subprocess.Pipe to call os.wait4 in the unix variant and stash usage in a data member. ---------- components: Library (Lib) messages: 218498 nosy: donald.petravick priority: normal severity: normal status: open title: can the subprocess module war using os.wait4 and so return usage? type: enhancement versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21504> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com