Skip to content

More execution commands and use waitpid where sensible - #58

Merged
nbaksalyar merged 2 commits into
headcrab-rs:masterfrom
bjorn3:step_and_wait
Jul 29, 2020
Merged

nbaksalyar merged 2 commits into
headcrab-rs:masterfrom
bjorn3:step_and_wait

Conversation

@bjorn3

@bjorn3 bjorn3 commented Jul 28, 2020

Copy link
Copy Markdown
Contributor

While there are legitimate use cases where waitpid should not be used, not using it will in most cases lead to race-conditions between stopping execution of the debuggee again and reading/writing state.

@bjorn3
bjorn3 requested a review from nbaksalyar July 29, 2020 16:45

@nbaksalyar nbaksalyar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, thank you! Just a very minor nitpick. :)

Comment thread src/target/unix.rs Outdated
Co-authored-by: Nikita Baksalyar <nikita.baksalyar@gmail.com>
@nbaksalyar
nbaksalyar merged commit 53d1867 into headcrab-rs:master Jul 29, 2020
@bjorn3
bjorn3 deleted the step_and_wait branch July 29, 2020 20:47
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