From fe0787f98785136973754d3a1d77a49032d1b384 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 22 Nov 2016 12:55:00 -0500 Subject: [PATCH] win: Don't try to use pthread_atfork on Windows --- uvloop/loop.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uvloop/loop.pyx b/uvloop/loop.pyx index 04f30af..d4a95fd 100644 --- a/uvloop/loop.pyx +++ b/uvloop/loop.pyx @@ -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