From: Arran Cudbard-Bell Date: Mon, 27 Apr 2020 23:51:58 +0000 (-0500) Subject: event: Unused code X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6dc3cf35e763980bfa09020d4f1f2496a5d5bc2;p=thirdparty%2Ffreeradius-server.git event: Unused code --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index ea7764581f4..d334955586b 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -1956,17 +1956,9 @@ service: */ void fr_event_loop_exit(fr_event_list_t *el, int code) { - struct kevent kev; - if (unlikely(!el)) return; el->will_exit = code; - - /* - * Signal the control plane to exit. - */ - EV_SET(&kev, 0, EVFILT_USER, 0, NOTE_TRIGGER | NOTE_FFNOP, 0, NULL); - (void) kevent(el->kq, &kev, 1, NULL, 0, NULL); } /** Check to see whether the event loop is in the process of exiting