Commit d6e88662 authored by Denis Bilenko's avatar Denis Bilenko

core: always pass EVFLAG_NOENV to libev's loop. LIBEV_FLAGS env var is now...

core: always pass EVFLAG_NOENV to libev's loop. LIBEV_FLAGS env var is now ignored (use GEVENT_BACKEND)
parent bbf888da
...@@ -65,7 +65,6 @@ BACKEND_KQUEUE = libev.EVBACKEND_KQUEUE ...@@ -65,7 +65,6 @@ BACKEND_KQUEUE = libev.EVBACKEND_KQUEUE
BACKEND_EPOLL = libev.EVBACKEND_EPOLL BACKEND_EPOLL = libev.EVBACKEND_EPOLL
BACKEND_POLL = libev.EVBACKEND_POLL BACKEND_POLL = libev.EVBACKEND_POLL
BACKEND_SELECT = libev.EVBACKEND_SELECT BACKEND_SELECT = libev.EVBACKEND_SELECT
NOENV = libev.EVFLAG_NOENV
FORKCHECK = libev.EVFLAG_FORKCHECK FORKCHECK = libev.EVFLAG_FORKCHECK
NOINOTIFY = libev.EVFLAG_NOINOTIFY NOINOTIFY = libev.EVFLAG_NOINOTIFY
SIGNALFD = libev.EVFLAG_SIGNALFD SIGNALFD = libev.EVFLAG_SIGNALFD
...@@ -97,7 +96,6 @@ _flags = [(libev.EVBACKEND_PORT, 'port'), ...@@ -97,7 +96,6 @@ _flags = [(libev.EVBACKEND_PORT, 'port'),
(libev.EVBACKEND_EPOLL, 'epoll'), (libev.EVBACKEND_EPOLL, 'epoll'),
(libev.EVBACKEND_POLL, 'poll'), (libev.EVBACKEND_POLL, 'poll'),
(libev.EVBACKEND_SELECT, 'select'), (libev.EVBACKEND_SELECT, 'select'),
(libev.EVFLAG_NOENV, 'noenv'),
(libev.EVFLAG_FORKCHECK, 'forkcheck'), (libev.EVFLAG_FORKCHECK, 'forkcheck'),
(libev.EVFLAG_SIGNALFD, 'signalfd'), (libev.EVFLAG_SIGNALFD, 'signalfd'),
(libev.EVFLAG_NOSIGMASK, 'nosigmask')] (libev.EVFLAG_NOSIGMASK, 'nosigmask')]
...@@ -237,6 +235,7 @@ cdef public class loop [object PyGeventLoopObject, type PyGeventLoop_Type]: ...@@ -237,6 +235,7 @@ cdef public class loop [object PyGeventLoopObject, type PyGeventLoop_Type]:
else: else:
c_flags = _flags_to_int(flags) c_flags = _flags_to_int(flags)
_check_flags(c_flags) _check_flags(c_flags)
c_flags |= libev.EVFLAG_NOENV
if _default_loop_destroyed: if _default_loop_destroyed:
default = False default = False
if default: if default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment