Bug 19698 - Error in rc script for vncserver
Error in rc script for vncserver
Status: CLOSED RAWHIDE
Product: Red Hat Powertools
Classification: Retired
Component: vnc (Show other bugs)
7.0
All Linux
low Severity low
: ---
: ---
Assigned To: Tim Waugh
Dale Lovelace
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-10-24 13:12 EDT by Need Real Name
Modified: 2005-10-31 17:00 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-10-26 08:52:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
Here is a patch to fix this. Unfortunately, now that it _works_, 'service vncserver stop' will kill all Xvnc processes. :-( (818 bytes, patch)
2000-10-26 08:52 EDT, Tim Waugh
no flags Details | Diff

  None (edit)
Description Need Real Name 2000-10-24 13:12:17 EDT
The script that starts vnc-server makes a call to another script that does
the actual executing of VNC.  However, this script spawns a child process
that is the vnc server.  Because the name of the executable
changes.pidlist=`pidofproc $1`
Example:
(from /etc/init.d/functions)
<snip>
        # Save basename.
        base=`basename $1`

        # Find pid.
        pid=
        for apid in $pidlist ; do
           [ -d /proc/$apid ] && pid="$pid $apid"
        done
</snip>

The basename of /usr/bin/vncserver is vncserver, while the actual
executable is Xvnc.  Note that Xvnc isn't the client (thats vncviewer). 
The only implication I've seen so far is that while trying to query the
status of vncserver or kill/restart it, the script fails, not only not
returning the status, but not killing the server.  If the server has an
another attempt to start before a reboot or manual removal of the Xvnc
process, the new instances cannot grab the default :0 or :1 addresses and
therefore may lead to confusion as to which Xvnc session is being accessed.

-Ben Klang, KF4WBX
ben@insightsys.com
Comment 1 Tim Waugh 2000-10-26 08:52:04 EDT
Created attachment 4674 [details]
Here is a patch to fix this.  Unfortunately, now that it _works_, 'service vncserver stop' will kill all Xvnc processes. :-(
Comment 2 Tim Waugh 2000-10-26 09:36:37 EDT
I've put this patch in vnc-3.3.3r1-12.

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