Bug 74227

Summary: xvinfo exits with error in normal operation
Product: xorg Reporter: Reuben Thomas <rrt>
Component: App/otherAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Reuben Thomas 2014-01-30 15:16:46 UTC
Running simply "xvinfo" causes the program to print the information it should, then exit with code 1, i.e. an error code.

This is not documented, and causes programs that call xvinfo to think there's a problem when there isn't.

The fix would seem to be as simple as changing "return 1" to "return 0" at the bottom of xvinfo.c.

Looking at other programs in the x11-utils suite, they seem to return 0 (as they should) on normal exit, so as far as I can tell this is a one-off error, not an undocumented convention.
Comment 1 GitLab Migration User 2018-08-10 21:35:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/app/xvinfo/issues/1.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.