[Python-Dev] Release or not release the GIL (original) (raw)
Charles-François Natali cf.natali at gmail.com
Fri Feb 1 14:37:35 CET 2013
- Previous message: [Python-Dev] Release or not release the GIL
- Next message: [Python-Dev] Release or not release the GIL
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
dup2(oldfd, newfd) closes oldfd. No, it doesn't close oldfd. It may close newfd if it was already open.
(I guess that's what he meant).
Anyway, only dup2() should probably release the GIL.
One reasonable heuristic is to check the man page: if the syscall can return EINTR, then the GIL should be released.
- Previous message: [Python-Dev] Release or not release the GIL
- Next message: [Python-Dev] Release or not release the GIL
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]