Browse Source

[core] Use EVFLAG_NOSIGFD to disable signalfd usage if libev 3.8 is used, it breaks signal handling

personal/stbuehler/wip
Thomas Porzelt 12 years ago
parent
commit
396f740e77
  1. 5
      src/main/server.c

5
src/main/server.c

@ -305,6 +305,11 @@ static gpointer server_worker_cb(gpointer data) {
}
gboolean li_server_loop_init(liServer *srv) {
/* disable usage if signalfd for libev 3.8, it breaks signal handling. 3.9+ have it disabled by default */
if (EV_VERSION_MAJOR == 3 && EV_VERSION_MINOR == 8 && ev_version_major() == 3 && ev_version_minor() == 8) {
srv->loop_flags |= EVFLAG_NOSIGFD;
}
srv->loop = ev_default_loop(srv->loop_flags);
if (!srv->loop) {

Loading…
Cancel
Save