cli: flush stdout after printing an event
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
38174a05a5
commit
2c30506a4f
1 changed files with 1 additions and 0 deletions
1
cli.c
1
cli.c
|
@ -86,6 +86,7 @@ static void receive_event(struct ubus_context *ctx, struct ubus_event_handler *e
|
||||||
|
|
||||||
str = blobmsg_format_json(msg, true);
|
str = blobmsg_format_json(msg, true);
|
||||||
printf("{ \"%s\": %s }\n", type, str);
|
printf("{ \"%s\": %s }\n", type, str);
|
||||||
|
fflush(stdout);
|
||||||
free(str);
|
free(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue