Message370342
hang.py uses the default multiprocessing start method, which was then 'fork'. It is now 'spawn' on macOS. And there have been many other changes. When I run the following from IDLE, it finishes immediately.
import multiprocessing, sqlite3
def hang():
sqlite3.connect('/tmp/foo')
if __name__ == '__main__':
multiprocessing.Pool(2).apply_async(hang, []).get(999)
print('done')
Unless I am missing something, this should be closed as 'out of date'. |
|
| Date |
User |
Action |
Args |
| 2020-05-29 23:25:34 | terry.reedy | set | recipients:
+ terry.reedy, ronaldoussoren, ned.deily, eitan.adler, Craig.Silverstein, spicyj, PyAcrisel, [email protected], erlendaasland |
| 2020-05-29 23:25:34 | terry.reedy | set | messageid: <[email protected]> |
| 2020-05-29 23:25:34 | terry.reedy | link | issue20353 messages |
| 2020-05-29 23:25:34 | terry.reedy | create | |
|