Commit: 8b29b5a46cdc7015a1dc5b502fe103e0c2e7f219
Parent: 765356e80262a20c359ec7722a5590232442d0d3
Author: Andrew Sayers <kernel.org@pileofstuff.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-05-01 16:25:28
Tree: c5370225f676d6bcd9663e0442e317f3cd4819ea

obexd: Support sd_login_monitor_get_timeout() The documentation for sd_login_monitor_get_timeout() implies the API may need to be checked after some time, even if no events have been received via the fd. In practice, the implementation has always returned a dummy value, and changing it now would cause enough breakage in other projects to make it unlikely to ever happen. Add a handler for that case, even though it can't currently happen in the real world. The API assumes we call poll() directly, so in theory it could change the timeout based on some event that doesn't trigger a callback (e.g. sending a signal to the service). It's hard to see how we'd handle that without running a poll() in a separate thread, which would be a lot of complexity for an untestable edge case. Don't try to handle that problem.

Diffstat

M obexd/src/logind.c | 43 ++++++++++++++++++++++++++++++++++++++++

1 files changed, 43 insertions(+), 0 deletions(-)

View Full Diff | Patch