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

Reset the /proc offset after a failed attempt to find pid #681

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

RonFed
Copy link
Contributor

@RonFed RonFed commented Feb 19, 2024

Following #649, since we are using the same file pointer, need to reset the offset after a failed attempt to find the pid. The current code will reach EOF the first time and will read from the same offset next time (which can cause a miss to find the target pid).

@RonFed RonFed changed the title Reset the /proc offset after a failed attempt to fiind pid Reset the /proc offset after a failed attempt to find pid Feb 19, 2024
@RonFed RonFed marked this pull request as ready for review February 19, 2024 08:33
@RonFed RonFed requested a review from a team as a code owner February 19, 2024 08:33
@MrAlias MrAlias merged commit cf4ecc3 into open-telemetry:main Feb 20, 2024
17 checks passed
@damemi damemi mentioned this pull request Mar 26, 2024
@MrAlias MrAlias added this to the v0.11.0-alpha milestone Mar 28, 2024
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.

None yet

4 participants