Message64660
Bad design stays bad design: the hope that pids don't get reused soon
breaks two assumptions:
1) I don't have to wait() for a child process soon. It's the programs
business.
2) Pids cycle: there are security patches to make pids of future
processes hard to predict by assigning random free pids.
I actually was about to report a bug on subprocess when I bumped into
this one. My problem is pretty thread-less but related:
How do I kill() a process if it's pid got recycled behind my back??
In my opinion the module should work the "Python" way of doing things,
otherwise programmers will be surprised, as I was:
a) don't do my work (no wait() for things I care of/have reference to)
b) do your work (clean up things I don't care of/have no reference to)
If that's not possible, how does subprocess actually "intends to replace
os.spawn*"? [Library Reference]
It is still possible to extend the Popen() call to reflect if the caller
wants a P_NOWAITO or P_NOWAIT behavior, but the closer we get to the os,
the less sense does it make to replace some other modules... |
|
| Date |
User |
Action |
Args |
| 2008-03-28 23:51:30 | siemer | set | spambayes_score: 0.000487407 -> 0.000487407 recipients:
+ siemer, gvanrossum, nnorwitz, abo, gregory.p.smith, astrand, exarkun, gjb1002, dsagal, tom_culliton |
| 2008-03-28 23:51:29 | siemer | set | spambayes_score: 0.000487407 -> 0.000487407 messageid: <1206748289.72.0.919073277194.issue1731717@psf.upfronthosting.co.za> |
| 2008-03-28 23:51:29 | siemer | link | issue1731717 messages |
| 2008-03-28 23:51:28 | siemer | create | |
|