#include <sys/eventfd.h>
#include <systemd/sd-event.h>
-#include "fdev.h"
#if HAS_WATCHDOG
#include <systemd/sd-daemon.h>
#endif
unsigned state; /**< encoded state */
int efd; /**< event notification */
struct sd_event *sdev; /**< the systemd event loop */
- struct fdev *fdev; /**< handling of events */
struct thread *holder; /**< holder of the evloop */
};
if (evloop.holder)
return evloop.holder == ct;
+ if (!evloop.sdev)
+ return 0;
+
ct->nholder = NULL;
evloop.holder = ct;
return 1;