Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dsme] Avoid recursion during dsmesock disconnecting. Fixes JB#38474
Using availability of dsme dbus service as an trigger for disconnecting also the dsmesock connection creates a shutdown time hazard where mce attempts to recursively deactivate process watchdog on an already closed connection. As dsme dropping from systembus no longer means that dsme is about to exit, do not trigger dsmesock disconnects when dsme service loses name owner on system bus. Avoid recursive process watchdog quits during disconnect by doing the quitting only once / connect after removal of socket io watch. Drop reconnect attempts on I/O error situations as they are unlikely to do any good and can lead to further recursive behavior. Do not initiate new dsmesock connections while device is shutting down. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
24 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters