Bug 458651 - Give exit code != 0 when vncserver did not started
Summary: Give exit code != 0 when vncserver did not started
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: vnc
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Adam Tkac
QA Contact:
URL:
Whiteboard:
Depends On: 212985
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-11 11:23 UTC by Michal Nowak
Modified: 2013-04-30 23:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 21:16:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0119 0 normal SHIPPED_LIVE vnc bug fix and enhancement update 2009-01-20 16:04:50 UTC

Description Michal Nowak 2008-08-11 11:23:29 UTC
Description of problem:

In: 

    vnc-rh212985.patch

From:

    24 -# Give Xvnc a chance to start up
    25 -
    26 -sleep(3); 
    27 +if (!(-e "$pidFile")) {
    28 +    warn "Unable to start Xvnc, exiting\n";
--> 29 +    exit;
    30 +}


To:

--> 29 +    exit 2;


Exit code 1 is allocated already, so let's choose some random one -> 2.

Version-Release number of selected component (if applicable):

vnc-4.1.2-11.el5

Actual results:

Error msg is given but exit code is still set to zero.

Expected results:

$ vncserver -bigBang
...
$ echo $?
2

Additional info:

This would help catching not started VNC server in nicer way. Now is necessary to grep output, which is fault-prone (string might change, etc.)

Comment 2 RHEL Program Management 2008-08-11 13:46:03 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 3 Adam Tkac 2008-08-11 15:46:32 UTC
Fixed in vnc-4.1.2-12.el5

Comment 7 errata-xmlrpc 2009-01-20 21:16:07 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0119.html


Note You need to log in before you can comment on or make changes to this bug.