win: Don't try to use pthread_atfork on Windows

This commit is contained in:
Yury Selivanov 2016-11-22 12:55:00 -05:00
parent 5809486d02
commit fe0787f987
1 changed files with 4 additions and 0 deletions

View File

@ -2743,6 +2743,10 @@ cdef void __atfork_child() nogil:
cdef __install_atfork():
global __atfork_installed
IF UNAME_SYSNAME == "Windows":
return
if __atfork_installed:
return
__atfork_installed = 1