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

fix data race b/w start and kill #1373

Merged
merged 1 commit into from
Apr 23, 2020
Merged

fix data race b/w start and kill #1373

merged 1 commit into from
Apr 23, 2020

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Apr 23, 2020

Racing over saving and checking ProcessState. It was checking
ProcessState to see if the command had exited. I tweaked exitCh
to have closing it indicate that the command had exited.

Fixes #1372

@eikenb eikenb added the bug label Apr 23, 2020
@eikenb eikenb added this to the 0.25.0 milestone Apr 23, 2020
@eikenb eikenb requested a review from a team April 23, 2020 02:05
child/child.go Outdated Show resolved Hide resolved
@eikenb eikenb force-pushed the issue-1372-child-data-race branch 4 times, most recently from e3043c7 to bc473d3 Compare April 23, 2020 20:57
Racing over saving and checking ProcessState. It was checking
ProcessState to see if the command had exited. I tweaked exitCh
to have closing it indicate that the command had exited.
@eikenb eikenb merged commit ba7887c into master Apr 23, 2020
@eikenb eikenb deleted the issue-1372-child-data-race branch April 23, 2020 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data Race in child/child.go
2 participants