Message256817
Maybe instead of releasing the lock in the forked child process, we should try to acquire the lock in the os.fork() implementation, and then release it?
Otherwise, suppose that a call to getaddrinfo (call #1) takes a long amount of time. In the middle of it we fork, and then immediately try to call getaddrinfo (call #2, and call #1 is still happening) for some other address. At this point, since getaddrinfo isn't threadsafe, something bad will happen. |
|
Date |
User |
Action |
Args |
2015-12-21 23:55:27 | yselivanov | set | recipients:
+ yselivanov, vstinner, ionelmc, emptysquare |
2015-12-21 23:55:27 | yselivanov | set | messageid: <1450742127.47.0.933597540005.issue25920@psf.upfronthosting.co.za> |
2015-12-21 23:55:27 | yselivanov | link | issue25920 messages |
2015-12-21 23:55:27 | yselivanov | create | |
|