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

Issue with minitouch not terminating properly on SIGINT (Ctrl+C) on Win-PS #18

Open
songyuc opened this issue Feb 4, 2024 · 0 comments

Comments

@songyuc
Copy link

songyuc commented Feb 4, 2024

Hi, guys,
I've encountered an issue where minitouch does not terminate properly when I send a SIGINT signal (using Ctrl+C) in the Win-PS terminal. After terminating minitouch with Ctrl+C, attempting to run it again results in a "binding socket: Address already in use" error. This suggests that the previous instance of minitouch did not release the port it was using.

Steps to Reproduce:

  1. Start minitouch on an Android emulator/device using the command: adb shell /data/local/tmp/minitouch.
  2. Terminate minitouch using Ctrl+C.
  3. Attempt to run minitouch again using the same command.

Expected Behavior:
Minitouch should terminate gracefully upon receiving a SIGINT signal and release any resources it was using, including the port.

Actual Behavior:
Minitouch does not seem to release the port it was bound to, leading to a "binding socket: Address already in use" error upon attempting to run it again.

Environment:

  • Operating System: Windows 10
  • Android device/emulator model: emulator-5554
  • Android version: Android 7.1.2

Additional Information:

  • Running adb -s emulator-5554 shell ps | findstr minitouch confirms that the minitouch process is still running after attempting to terminate it with Ctrl+C.
  • Temporary workaround: Manually killing the process using adb shell kill [PID] allows minitouch to be run again.

I believe this might be a bug with how minitouch handles the SIGINT signal. Any assistance or insights into this issue would be greatly appreciated.

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

No branches or pull requests

1 participant