cli: wait for incoming events on listen

This commit is contained in:
Felix Fietkau 2011-02-05 23:01:48 +01:00
parent 32436bf25f
commit f87a9dc69e

5
cli.c
View file

@ -62,6 +62,11 @@ static int ubus_cli_listen(struct ubus_context *ctx, int argc, char **argv)
event, ubus_strerror(ret)); event, ubus_strerror(ret));
} }
uloop_init();
ubus_add_uloop(ctx);
uloop_run();
uloop_done();
return 0; return 0;
} }