module: remove ready_fd

All modules are expected to handle a call to content() after having
been instantiated.

I.e. modules *cannot* even expect run() to have started running.
This commit is contained in:
Daniel Eklöf 2019-01-13 15:25:39 +01:00
parent 65cfcfb2de
commit acdeff3b6e
14 changed files with 27 additions and 66 deletions

View file

@ -144,8 +144,6 @@ run(struct module_run_context *ctx)
struct private *m = ctx->module->private;
int current_fd = initialize(m);
module_signal_ready(ctx);
if (current_fd == -1)
return 1;
@ -165,6 +163,8 @@ run(struct module_run_context *ctx)
udev_monitor_filter_add_match_subsystem_devtype(mon, "backlight", NULL);
udev_monitor_enable_receiving(mon);
bar->refresh(bar);
while (true) {
struct pollfd fds[] = {
{.fd = ctx->abort_fd, .events = POLLIN},