<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4110</bug_id>
          
          <creation_ts>2013-03-26 09:11:35 +0000</creation_ts>
          <short_desc>when close vncviewer, qemu&apos;s vncserver process(x11vnc) automated killed itself.</short_desc>
          <delta_ts>2013-08-21 20:47:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ning Zhang">ning.zhang</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>kai.kang</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>31165</commentid>
    <comment_count>0</comment_count>
    <who name="Ning Zhang">ning.zhang</who>
    <bug_when>2013-03-26 09:11:35 +0000</bug_when>
    <thetext>Image location: http://autobuilder.yoctoproject.org/pub/nightly/20130321-2/

Branch: poky/master
Git rev: 9ffee9add2d0380f4025e7a678a166f25a7d659e

Test steps:
1. start a qemuarm-sato, start vncserver on it by execute &quot;x11vnc -display :0.0&quot;
2. start a vncviewer from local host. e.g. &quot;vncviewer 192.168.7.2:0&quot;
3. close the vncviewer
4. the vncserver on qemu is automated killed.

Normally, a vncviewer open or close, should not impact the vncserver. On a real linux host, when we setup a vncserver, and laungh a vncviewer to it from other host, it could not impact the server, even if the viewer leave.

So i think x11vnc should have the same behavior, which is: when vncviewer leave, the server still alive.


==========log on qemu when exit the vnc viewer=============

26/03/2013 08:56:21 cursor_noshape_updates_clients: 0
26/03/2013 08:56:24 cursor_noshape_updates_clients: 0
26/03/2013 08:56:29 client_count: 0
26/03/2013 08:56:29 Restored X server key autorepeat to: 1
26/03/2013 08:56:29 viewer exited.
26/03/2013 08:56:29 deleted 20 tile_row polling images.
sh-4.2#
sh-4.2#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35827</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-08-21 20:47:10 +0000</bug_when>
    <thetext>Finally spent some time with this issue today and placed it under the debugger 
and also looked at the documentation of x11vnc.  It states the following:

-once                  Exit after the first successfully connected viewer
                       disconnects, opposite of -forever. This is the Default.

Notice this is default, the correct parameter would be -forever to get the 
behavior your talking about. So I think the default of x11vnc should be kept.

-shared                VNC display is shared, i.e. more than one viewer can
                       connect at the same time (default off).
-once                  Exit after the first successfully connected viewer
                       disconnects, opposite of -forever. This is the Default.
-forever               Keep listening for more connections rather than exiting
                       as soon as the first client(s) disconnect. Same as -many

                       To get the standard non-shared VNC behavior where when
                       a new VNC client connects the existing VNC client is
                       dropped use:  -nevershared -forever   This method can
                       also be used to guard against hung TCP connections that
                       do not go away.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>