Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[worker] Adjust mtp daemon start/stop timeouts
In devices that have lots of files (say tens of thousands), mtp daemon might have trouble getting everything enumerated within 30 second timeout allowed by usb-moded. Use 2 minute timeout for starting, and 15 second timeout for stopping mtp daemon. Implement a generic wait for condition/timeout function that can also be interrupted from main thread. Use the wait function for both regular blocking sleeps and waiting for mtp daemon starting/stopping. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
5 changed files
with
126 additions
and
71 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
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
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
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
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