cli: wait for incoming events on listen
This commit is contained in:
parent
32436bf25f
commit
f87a9dc69e
1 changed files with 5 additions and 0 deletions
5
cli.c
5
cli.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue