-
Notifications
You must be signed in to change notification settings - Fork 17
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
Send SIGSTOP to linux/android processes before doing other procfs/ptrace things. #108
Send SIGSTOP to linux/android processes before doing other procfs/ptrace things. #108
Conversation
things. If this fails, we continue as we used to. This is an attempt to get a consistent/static process state. Closes rust-minidump#28.
Not sure this is needed, but better to allow users to customize this rather than rely on a hardcoded value
I had a couple of comments about this but wasn't fast enough, I'll put them in a separate issue. |
Yeah later last night I also realized that |
Oh right, I thought about something like starting if the bool was true or checking of the process has reached a stopped state in the interim, but I assume that sigcont is idempotent ? |
It also might not hurt to just always send SIGCONT, but it'd be cleaner to be symmetric. I think as long as the SIGSTOP goes out, there's no reason to think the process won't stop (it's unblockable after all) even if we don't observe that. |
Given the processes will frequently be in the same process group it might be possible to |
Do you want to add yourself to https://github.com/rust-minidump/minidump-writer/blob/main/.github/CODEOWNERS so that you get auto-added as a reviewer? Then you can just remove the request if you don't have time/etc. |
Yes, thank you! |
If this fails, we continue as we used to. This is an attempt to get a consistent/static process state.
Closes #28.
Needs to be tested in all sorts of scenarios (but due to the timeout and the fact that it continues on failure, one would hope it'd only be an improvement).