Message189403
| Author |
sbt |
| Recipients |
Julien.Palard, joshpurvis, sbt, vinay.sajip |
| Date |
2013年05月16日.19:17:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1368731851.26.0.104781188296.issue17981@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Rather than
self.sock = None
I would do
self.sock.close()
which should work better for non-refcounted Pythons.
Of course it would be better to do this immediately after forking (i.e. before any more fds are created), otherwise you could still accidentally zap the fd of some other object.
If you can't do this immediately after forking then maybe it is better to move inherited potentially broken objects to a garbage list to prevent garbage collection. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年05月16日 19:17:31 | sbt | set | recipients:
+ sbt, vinay.sajip, Julien.Palard, joshpurvis |
| 2013年05月16日 19:17:31 | sbt | set | messageid: <1368731851.26.0.104781188296.issue17981@psf.upfronthosting.co.za> |
| 2013年05月16日 19:17:31 | sbt | link | issue17981 messages |
| 2013年05月16日 19:17:31 | sbt | create |
|