[issue31913] forkserver could warn if several threads are running

2017-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yeah... We might replicate the psutil source code doing that. On Linux, it involves parsing /proc/{pid}/status (which may not be available on some restricted execution environments?). Haven't looked what it does on macOS. -- nosy:

[issue31913] forkserver could warn if several threads are running

2017-11-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: If we do this, I think we should aim for the complete solution on the most common posix platforms (Linux and MacOS) as C/C++ extensions are just as happy to create threads these days. (but if you want to start with a simple python threads

[issue31913] forkserver could warn if several threads are running

2017-10-31 Thread Antoine Pitrou
New submission from Antoine Pitrou : I'm not sure this is worth handling, but I had an interaction with a user who had weird deadlock problems in a glibc function (getaddrinfo) in worker processes launched with the forkserver method. The explanation turned out to be that a