Browse Source

*** empty log message ***

master
Marc Alexander Lehmann 11 years ago
parent
commit
80d0bf20bb
2 changed files with 9 additions and 3 deletions
  1. +1
    -1
      Changes
  2. +8
    -2
      ev_select.c

+ 1
- 1
Changes View File

@ -6,7 +6,7 @@ TODO: signal handling per loop
TODO: nsig
- incompatible change: do not necessarily reset signal handler
to SIG_DFL when a sighandler is stopped.
- ev_default_destroy did not properly set one member to zero,
- ev_default_destroy did not properly free or zero some members,
potentially causing crashes and memory corruption on repated
ev_default_destroy/ev_default_loop calls.
- take advantage of signalfd on GNU/Linux systems.


+ 8
- 2
ev_select.c View File

@ -282,9 +282,12 @@ select_init (EV_P_ int flags)
#else
vec_max = 0;
vec_ri = 0;
vec_ri = 0;
vec_wo = 0;
vec_ro = 0;
vec_wi = 0;
vec_wo = 0;
#ifdef _WIN32
vec_eo = 0;
#endif
#endif
return EVBACKEND_SELECT;
@ -297,6 +300,9 @@ select_destroy (EV_P)
ev_free (vec_ro);
ev_free (vec_wi);
ev_free (vec_wo);
#ifdef _WIN32
ev_free (vec_eo);
#endif
}

Loading…
Cancel
Save