diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2015-11-02 11:16:11 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-11-02 19:02:53 +0100 |
commit | 95648dadba44dd92fc919dddb10f39050500c629 (patch) | |
tree | 8c7c4042d1d2a066d50144cc1c8d9f8db68ad872 /libubus.c | |
parent | d23b07a9ff999275c09957cb385e10cb729abd17 (diff) | |
download | ubus-95648dadba44dd92fc919dddb10f39050500c629.tar.gz |
libubus: Fix reverse order processing of pending ubus notifications messages
Append ubus notification messages to the tail of the pending list
so they're processed in the order as they're put onto the pending list
Signed-off-by: Xinxing Hu <xinxing.huchn@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'libubus.c')
-rw-r--r-- | libubus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -81,7 +81,7 @@ ubus_queue_msg(struct ubus_context *ctx, struct ubus_msghdr_buf *buf) pending->hdr.data = data; memcpy(&pending->hdr.hdr, &buf->hdr, sizeof(buf->hdr)); memcpy(data, buf->data, blob_raw_len(buf->data)); - list_add(&pending->list, &ctx->pending); + list_add_tail(&pending->list, &ctx->pending); if (ctx->sock.registered) uloop_timeout_set(&ctx->pending_timer, 1); } |