Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix adb server hang #2870

Closed
wants to merge 1 commit into from
Closed

Fix adb server hang #2870

wants to merge 1 commit into from

Conversation

yan12125
Copy link
Contributor

Since commit 0426708, the server is run
in a dedicated thread. For SDL, many signals, including SIGINT and
SIGTERM, are masked for new threads. As a result, if the adb server is
not already running, adb commands invoked by scrcpy will start an adb
server that ignores those signals and cannot be terminated at system
shutdown.

Since commit 0426708, the server is run
in a dedicated thread. For SDL, many signals, including SIGINT and
SIGTERM, are masked for new threads. As a result, if the adb server is
not already running, adb commands invoked by scrcpy will start an adb
server that ignores those signals and cannot be terminated at system
shutdown.
@rom1v
Copy link
Collaborator

rom1v commented Dec 11, 2021

Thank you 👍

It seems it also fixes #2873 (that I discovered by investigating this issue/PR, but I thought it was a different problem).

rom1v pushed a commit that referenced this pull request Dec 11, 2021
Since commit 0426708, the server is run
in a dedicated thread. For SDL, many signals, including SIGINT and
SIGTERM, are masked for new threads. As a result, if the adb server is
not already running, adb commands invoked by scrcpy will start an adb
server that ignores those signals and cannot be terminated at system
shutdown.

Fixes #2873 <#2873>
PR #2870 <#2870>

Signed-off-by: Romain Vimont <rom@rom1v.com>
@rom1v
Copy link
Collaborator

rom1v commented Dec 11, 2021

Rebase onto dev and merged: d049671

@rom1v rom1v closed this Dec 11, 2021
@yan12125 yan12125 deleted the fix-adb-hang branch December 12, 2021 01:41
@yan12125
Copy link
Contributor Author

Thanks! Glad that this change helps in more cases :)

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.

None yet

2 participants