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

Coverity & rs-dds-config fix #13338

Merged
merged 4 commits into from
Sep 16, 2024
Merged

Conversation

maloel
Copy link
Collaborator

@maloel maloel commented Sep 12, 2024

rs-dds-config needs to always assume DDS enabled, but didn't...
Fix High Coverity issues.
rs-color example didn't work with non-standard resolutions. Fixed.

if( rv != sizeof( incr ) )
LOG_WARNING( "failed to write to network adapter watcher done event: " << rv );
else
_th.join();
Copy link
Contributor

Choose a reason for hiding this comment

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

If we don't join, it will cause program abnormal termination. Maybe retry to signal?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is just to avoid a hang if the write fails (it failed and hung); it's not expected once done right (and now it is)

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, if write fails it's probably an OS error and it means we won't close gracefully. I think it's acceptable.

@maloel maloel merged commit e3e1f56 into IntelRealSense:development Sep 16, 2024
20 checks passed
@maloel maloel deleted the coverity branch September 16, 2024 07:05
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