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
d17b5e0b
Commit
d17b5e0b
authored
Mar 09, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #764 from gevent/libev-update
Update libev to 4.22
parents
bf62d1aa
a83be774
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
299 additions
and
114 deletions
+299
-114
changelog.rst
changelog.rst
+5
-0
libev/Changes
libev/Changes
+10
-0
libev/configure
libev/configure
+1
-1
libev/ev.c
libev/ev.c
+277
-99
libev/ev.h
libev/ev.h
+1
-1
libev/ev_epoll.c
libev/ev_epoll.c
+2
-2
libev/ev_win32.c
libev/ev_win32.c
+3
-11
No files found.
changelog.rst
View file @
d17b5e0b
...
...
@@ -4,6 +4,11 @@
.. currentmodule:: gevent
1.2a1 (unreleased)
==================
- Update libev to version 4.22.
1.1.0 (Mar 5, 2016)
===================
...
...
libev/Changes
View file @
d17b5e0b
...
...
@@ -14,6 +14,16 @@ TODO: embed watchers need updating when fd changes
TODO: document portability requirements for atomic pointer access
TODO: document requirements for function pointers and calling conventions.
4.22 Sun Dec 20 22:11:50 CET 2015
- when epoll detects unremovable fds in the fd set, rebuild
only the epoll descriptor, not the signal pipe, to avoid
SIGPIPE in ev_async_send. This doesn't solve it on fork,
so document what needs to be done in ev_loop_fork
(analyzed by Benjamin Mahler).
- remove superfluous sys/timeb.h include on win32
(analyzed by Jason Madden).
- updated libecb.
4.20 Sat Jun 20 13:01:43 CEST 2015
- prefer noexcept over throw () with C++ 11.
- update ecb.h due to incompatibilities with c11.
...
...
libev/configure
View file @
d17b5e0b
...
...
@@ -2721,7 +2721,7 @@ fi
# Define the identity of the package.
PACKAGE
=
libev
VERSION
=
4.2
0
VERSION
=
4.2
2
cat
>>
confdefs.h
<<
_ACEOF
...
...
libev/ev.c
View file @
d17b5e0b
This diff is collapsed.
Click to expand it.
libev/ev.h
View file @
d17b5e0b
...
...
@@ -211,7 +211,7 @@ struct ev_loop;
/*****************************************************************************/
#define EV_VERSION_MAJOR 4
#define EV_VERSION_MINOR 2
0
#define EV_VERSION_MINOR 2
2
/* eventmask, revents, events... */
enum
{
...
...
libev/ev_epoll.c
View file @
d17b5e0b
...
...
@@ -179,7 +179,7 @@ epoll_poll (EV_P_ ev_tstamp timeout)
if
(
expect_false
((
uint32_t
)
anfds
[
fd
].
egen
!=
(
uint32_t
)(
ev
->
data
.
u64
>>
32
)))
{
/* recreate kernel state */
postfork
=
1
;
postfork
|=
2
;
continue
;
}
...
...
@@ -203,7 +203,7 @@ epoll_poll (EV_P_ ev_tstamp timeout)
/* which is fortunately easy to do for us. */
if
(
epoll_ctl
(
backend_fd
,
want
?
EPOLL_CTL_MOD
:
EPOLL_CTL_DEL
,
fd
,
ev
))
{
postfork
=
1
;
/* an error occurred, recreate kernel state */
postfork
|=
2
;
/* an error occurred, recreate kernel state */
continue
;
}
}
...
...
libev/ev_win32.c
View file @
d17b5e0b
...
...
@@ -39,17 +39,6 @@
#ifdef _WIN32
/* timeb.h is actually xsi legacy functionality */
/* JAM: gevent: A CHANGES entry says that GetSystemTimeAsFileTime is now
* used instead of timeb. So maybe this isn't needed? It breaks the build
* on Visual Studio 2014.
* UPDATE: upstream confirms this isn't needed and has removed it from what will
* become 4.22. See http://lists.schmorp.de/pipermail/libev/2015q4/002586.html
*/
#if 0
#include <sys/timeb.h>
#endif
/* note: the comment below could not be substantiated, but what would I care */
/* MSDN says this is required to handle SIGFPE */
/* my wild guess would be that using something floating-pointy is required */
...
...
@@ -99,6 +88,8 @@ ev_pipe (int filedes [2])
if
(
connect
(
sock
[
0
],
(
struct
sockaddr
*
)
&
addr
,
addr_size
))
goto
fail
;
/* TODO: returns INVALID_SOCKET on winsock accept, not < 0. fix it */
/* when convenient, probably by just removing error checking altogether? */
if
((
sock
[
1
]
=
accept
(
listener
,
0
,
0
))
<
0
)
goto
fail
;
...
...
@@ -168,3 +159,4 @@ ev_time (void)
}
#endif
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