Skip to content

Fix adb server hang - #2870

Closed
yan12125 wants to merge 1 commit into
Genymobile:masterfrom
yan12125:fix-adb-hang
Closed

yan12125 wants to merge 1 commit into
Genymobile:masterfrom
yan12125:fix-adb-hang

Conversation

@yan12125

Copy link
Copy Markdown

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

rom1v commented Dec 11, 2021

Copy link
Copy Markdown
Collaborator

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

rom1v commented Dec 11, 2021

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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.

2 participants