Commit 7ed15c05 authored by Denis Bilenko's avatar Denis Bilenko

Merge pull request #449 from jakecast/master

- bugfix for error: ISO C90 forbids mixed declarations and code in libev...
parents f315c1eb 1382f204
......@@ -16,10 +16,12 @@ static int sigchld_state = 0;
static struct ev_loop* gevent_ev_default_loop(unsigned int flags)
{
if (sigchld_state)
return ev_default_loop(flags);
struct ev_loop* result;
struct sigaction tmp;
if (sigchld_state)
return ev_default_loop(flags);
sigaction(SIGCHLD, NULL, &tmp);
result = ev_default_loop(flags);
// XXX what if SIGCHLD received there?
......
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