Message314316
Thanks for reporting this. I agree this is a real issue, but it doesn't exist on Python 3 anymore:
>>> q = multiprocessing.Queue()
>>> q.put(1)
>>> q.get()
1
>>> threading.enumerate()
[<_MainThread(MainThread, started 139978753529600)>, <Thread(QueueFeederThread, started daemon 139978667779840)>]
>>> q.close()
>>> threading.enumerate()
[<_MainThread(MainThread, started 139978753529600)>]
>>> os.getpid()
17318
And in another terminal:
$ ls -la /proc/17318/fd
total 0
dr-x------ 2 antoine antoine 0 mars 23 17:51 .
dr-xr-xr-x 9 antoine antoine 0 mars 23 17:51 ..
lrwx------ 1 antoine antoine 64 mars 23 17:52 0 -> /dev/pts/8
lrwx------ 1 antoine antoine 64 mars 23 17:52 1 -> /dev/pts/8
lrwx------ 1 antoine antoine 64 mars 23 17:51 2 -> /dev/pts/8
I'm uninterested in fixing this on Python 2, so I'm closing. |
|
Date |
User |
Action |
Args |
2018-03-23 16:57:13 | pitrou | set | recipients:
+ pitrou, davin, Henrique Andrade, pablogsal |
2018-03-23 16:57:13 | pitrou | set | messageid: <1521824233.23.0.467229070634.issue33081@psf.upfronthosting.co.za> |
2018-03-23 16:57:13 | pitrou | link | issue33081 messages |
2018-03-23 16:57:13 | pitrou | create | |
|