Author milko.krachounov
Recipients milko.krachounov
Date 2009-09-22.22:47:46
SpamBayes Score 2.61017e-06
Marked as misclassified No
Message-id <>
When subprocess.Popen.send_signal is called, it simply calls
os.kill(, ...) without checking whether the child has already
terminated. If the child has been terminated, and Popen.wait() or
Popen.poll() have been called, a process with PID no longer
exists, and what's worse, could belong to a totally unrelated process.

A better behavior would be to raise an exception when self.returncode is
not None. Alternatively, might be set to None after the process
has been terminated, as it is no longer meaningful. Or to another value
that would be invalid pid and invalid argument to os.kill and os.wait,
but unlike None would still evaluate to True.
Date User Action Args
2009-09-22 22:47:48milko.krachounovsetrecipients: + milko.krachounov
2009-09-22 22:47:48milko.krachounovsetmessageid: <>
2009-09-22 22:47:47milko.krachounovlinkissue6973 messages
2009-09-22 22:47:46milko.krachounovcreate