Skip to content

Conversation

@lumag
Copy link

@lumag lumag commented Dec 19, 2025

Calling btmgmt (and probably other utils) from init script currently fails as shell init will uncoditionally call epoll_ctl() on stdin, which can be /dev/null in such a case (and /dev/null doesn't support epoll). Rework bt_shell_attach(), skipping iniput initialization for non-interactive shells.

Only the interactive shell is supposed to read comments from the input
file descriptor. Rework bt_attach_shell() in order to stop calling
input_new() / io_new() in a non-interactive case.

Fixes bluez#700

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
There are only two cases, interactive and non-interactive. Make that
more obvious by using if-else rather than two if-checks.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
@BluezTestBot
Copy link

BlueZ Testbot Message:

This is an automated message and please do not change or delete.

Dear submitter,

Thanks for submitting the pull request to the BlueZ github repo.
Currently, the BlueZ repo in Github is only for CI and testing purposes,
and not accepting any pull request at this moment.

If you still want us to review your patch and merge them, please send your
patch to the Linux Bluetooth mailing list(linux-bluetooth@vger.kernel.org).

For more detail about submitting a patch to the mailing list,
Please refer "Submitting patches" section in the HACKING file in the source.

Note that this pull request will be closed in the near future.

Best regards,
BlueZ Team

@lumag lumag closed this Dec 19, 2025
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.

2 participants