Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
c40a5796
Commit
c40a5796
authored
Jan 24, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore sigfd for corecext using the same technique as the other LIBEV_EMBED properties.
parent
87a9efed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
3 deletions
+17
-3
CHANGES.rst
CHANGES.rst
+0
-3
src/gevent/libev/corecext.pyx
src/gevent/libev/corecext.pyx
+10
-0
src/gevent/libev/libev.h
src/gevent/libev/libev.h
+6
-0
src/gevent/libev/libev.pxd
src/gevent/libev/libev.pxd
+1
-0
No files found.
CHANGES.rst
View file @
c40a5796
...
...
@@ -272,9 +272,6 @@ libev
attributes are not portable and not implemented by libuv or the
CFFI backend. See :issue:`1076`.
- The ``sigfd`` property that was only conditionally available on
certain platforms and when libev was embedded, and only in the C
implementation, not the CFFI implementation, has been removed.
1.2.2 (2017-06-05)
==================
...
...
src/gevent/libev/corecext.pyx
View file @
c40a5796
...
...
@@ -565,6 +565,16 @@ cdef public class loop [object PyGeventLoopObject, type PyGeventLoop_Type]:
_check_loop
(
self
)
return
libev
.
gevent_ev_loop_origflags
(
self
.
_ptr
)
@
property
def
sigfd
(
self
):
_check_loop
(
self
)
fd
=
libev
.
gevent_ev_loop_sigfd
(
self
.
_ptr
)
if
fd
>=
0
:
return
fd
# Explicitly not EV_USE_SIGNALFD
raise
AttributeError
(
"sigfd"
)
cdef
public
class
callback
[
object
PyGeventCallbackObject
,
type
PyGeventCallback_Type
]:
cdef
public
object
callback
...
...
src/gevent/libev/libev.h
View file @
c40a5796
...
...
@@ -6,6 +6,11 @@
#define gevent_ev_loop_sig_pending(loop) ((loop))->sig_pending
#define gevent_ev_loop_backend_fd(loop) ((loop))->backend_fd
#define gevent_ev_loop_activecnt(loop) ((loop))->activecnt
#if EV_USE_SIGNALFD
#define gevent_ev_loop_sigfd(loop) ((loop))->sigfd
#else
#define gevent_ev_loop_sigfd(loop) -1
#endif
/* !EV_USE_SIGNALFD */
#else
/* !LIBEV_EMBED */
#include "ev.h"
...
...
@@ -13,6 +18,7 @@
#define gevent_ev_loop_sig_pending(loop) -1
#define gevent_ev_loop_backend_fd(loop) -1
#define gevent_ev_loop_activecnt(loop) -1
#define gevent_ev_loop_sigfd(loop) -1
#define LIBEV_EMBED 0
#define EV_USE_FLOOR -1
...
...
src/gevent/libev/libev.pxd
View file @
c40a5796
...
...
@@ -228,3 +228,4 @@ cdef extern from "libev.h" nogil:
int
gevent_ev_loop_sig_pending
(
ev_loop
*
);
int
gevent_ev_loop_backend_fd
(
ev_loop
*
);
int
gevent_ev_loop_activecnt
(
ev_loop
*
);
int
gevent_ev_loop_sigfd
(
ev_loop
*
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment