Closed GoogleCodeExporter closed 8 years ago
What's "program.exe"?
Maybe it's a program which starts and terminates so quickly that at the time
Process.__init__ is invoked (after subproces.Popen) the process is already gone.
If not, does it change anything if you put a sleep() between the two calls like
this?
class Popen(Process):
def __init__(self, *args, **kwargs):
self.__subproc = subprocess.Popen(*args, **kwargs)
time.sleep(.2)
Process.__init__(self, self.__subproc.pid)
Original comment by g.rodola
on 16 Sep 2011 at 3:34
This should now be fixed as r1277.
Original comment by g.rodola
on 9 Mar 2012 at 1:08
0.5.0 is finally out. Closing out as fixed.
Original comment by g.rodola
on 27 Jun 2012 at 6:54
[deleted comment]
Updated csets after the SVN -> Mercurial migration:
r1277 == revision f5120b145d09
Original comment by g.rodola
on 2 Mar 2013 at 12:02
I can reproduce it in 1.2.1 in FreeBSD. E.g.
psutil.Popen(shlex.split("cpuset -c -l 1-1 -p 12322"), stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
throws
File "build/bdist.freebsd-9.1-RELEASE-p7-amd64/egg/psutil/__init__.py", line
996, in __init__
psutil._error.NoSuchProcess: no process found with pid 51355
~ 1 time in 20 attempts.
Original comment by robert.a...@gmail.com
on 28 Dec 2013 at 7:32
Original comment by g.rodola
on 30 Dec 2013 at 1:14
Fixed in revision 4d5f5e2fa969.
Original comment by g.rodola
on 31 Dec 2013 at 11:29
Closing out as fixed as 2.0.0 version is finally out.
Original comment by g.rodola
on 10 Mar 2014 at 11:36
Original issue reported on code.google.com by
A.Ma...@gmail.com
on 8 Aug 2011 at 9:18