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

Fixed infinite loop on error bug while reading interface exception file (3.21.x) #5359

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

larsewi
Copy link
Contributor

@larsewi larsewi commented Nov 2, 2023

Fixed bug where the agent may enter an infinite loop while trying to read the interface exception file. The problem comes from the fact that the while loop for reading each line in the file checks for end-of-file, but not error. If an error occurs, end-of-file will never be reached, hence the loop will never break.

Back-ported from #5357

Fixed bug where the agent may enter an infinite loop while trying to
read the interface exception file. The problem comes from the fact that
the while loop for reading each line in the file checks for end-of-file,
but not error. If an error occurs, end-of-file will never be reached,
hence the loop will never break.

Ticket: None
Changelog: Title
Signed-off-by: Lars Erik Wik <[email protected]>
(cherry picked from commit 301a764)
@larsewi
Copy link
Contributor Author

larsewi commented Nov 2, 2023

@cf-bottom Jenkins please :)

@cf-bottom
Copy link

cf-bottom commented Nov 2, 2023

@larsewi larsewi changed the title Fixed infinite loop on error bug while reading interface exception file Fixed infinite loop on error bug while reading interface exception file (3.21.x) Nov 2, 2023
Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

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

ACK. I take it the CI failures are unrelated.

@larsewi larsewi merged commit 6290c2a into cfengine:3.21.x Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants