Skip to content

Conversation

@Farhad-Shabani
Copy link

No description provided.

c.p.Require().NoError(err, "fault-proof challenger exited unexpectedly")
})

err := c.sub.Start(c.execPath, c.args, []string{})
Copy link
Member

Choose a reason for hiding this comment

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

The lock is not held before c.sub.Start() is called. I think this could cause race when concurrent Start()/Stop() calls are made. Maybe low priority if we don't need such tests to be covered.

Copy link
Author

Choose a reason for hiding this comment

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

Good catch. A proper fix isn't trivial though: holding the lock through Start() risks deadlocks since sub.Start() can block and OnExit runs async. Given current usage (single Start/Stop, no concurrency), I'll leave as-is for now.

Copy link
Member

@fakedev9999 fakedev9999 left a comment

Choose a reason for hiding this comment

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

lgtm

@Farhad-Shabani Farhad-Shabani merged commit 27dfa39 into op-succinct-sysgo Jan 5, 2026
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.

3 participants