Bug 74227 - xvinfo exits with error in normal operation
Summary: xvinfo exits with error in normal operation
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/other (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 15:16 UTC by Reuben Thomas
Modified: 2018-08-10 21:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.