Skip to content

ubus fixes#372

Open
nbd168 wants to merge 2 commits intojow-:masterfrom
nbd168:ubus-fix
Open

ubus fixes#372
nbd168 wants to merge 2 commits intojow-:masterfrom
nbd168:ubus-fix

Conversation

@nbd168
Copy link
Contributor

@nbd168 nbd168 commented Feb 7, 2026

  • avoid double close of externally owned channel fds
  • fix refcounting bug

In uc_ubus_channel_req_cb an extra ref is taken for args and method,
which are not used elsewhere.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
When a channel is opened via an fd obtained through fileno(), the fd is
owned by an external resource. Track this in fd_handle and detach from
uloop without closing the fd on disconnect/shutdown.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant