-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
Manage all processes with GuardedProcessPool #1747
Conversation
This way we can destroy the processes and wait for them to exit in parallel, and ensure the process is destroyed so that we won't encounter strange port being used issue at the same time.
I think we need sigkill after waitfor timeout. Otherwise, it may not fix #1740. |
|
Actually, I cannot report the issue locally. According to the report:
|
After instrumenting ss-local, my observation is that the ss-local process hangs when ss-local calls cork_subprocess_group_abort then waitpid until the child process finished. |
@madeye Okay. Here's the source code: shadowsocks/kcptun-android#32 |
Manage all processes with GuardedProcessPool
Manage all processes with GuardedProcessPool
Type of changes
Details
This way we can destroy the processes and wait for them to exit in parallel, and ensure the process is destroyed so that we won't encounter strange port being used issue at the same time.
This addresses #1740 but probably doesn't fix it.