module: add new function module_signal_ready()

This commit is contained in:
Daniel Eklöf 2018-12-19 20:23:53 +01:00
parent a3eb7ebc08
commit 3413232ed6
9 changed files with 19 additions and 14 deletions

View file

@ -1,8 +1,6 @@
#include "label.h"
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <assert.h>
#include <poll.h>
@ -30,7 +28,7 @@ content(struct module *mod)
static int
run(struct module_run_context *ctx)
{
write(ctx->ready_fd, &(uint64_t){1}, sizeof(uint64_t));
module_signal_ready(ctx);
return 0;
}