<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 7/20/2014 6:15 PM, Jean-Yves Avenard
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANpj82JCyqvYeTurarw=viqTveZZFB2q-eMpK-H-+KNHu7ROrg@mail.gmail.com"
      type="cite">Hi<br>
      <br>
      On Monday, July 21, 2014, Mike Perkins &lt;<a
        moz-do-not-send="true"
        href="mailto:mikep@randomtraveller.org.uk">mikep@randomtraveller.org.uk</a>&gt;



      wrote:
      <blockquote class="gmail_quote" style="margin:0 0 0
        .8ex;border-left:1px #ccc solid;padding-left:1ex"> After you
        kill X, does a 'ps -ef' show any instances of mythfrontend still
        running?&nbsp;<br>
      </blockquote>
      <blockquote class="gmail_quote" style="margin:0 0 0
        .8ex;border-left:1px #ccc solid;padding-left:1ex"> I'm wondering
        if the audio is in a separate thread which is why it remains
        after the other threads - that use X - have died.<br>
        <br>
      </blockquote>
      <div><br>
      </div>
      <div>A thread in Linux *is* a process. They are fundamentally one
        and the same.&nbsp;</div>
      <div><br>
      </div>
      <div>Having&nbsp;&nbsp;said that, alt-tab is managed by the window manager.
        And it would only show the application that started after it was
        launched.&nbsp;</div>
      <div><br>
      </div>
      Mythfrontend doesn't need X, it isn't killed when X is killed.
      Maybe it should monitor the X server if it was started with one.
      And automatically quit if X is killed.&nbsp; <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
    </blockquote>
    <br>
    Finally got around to trying this.<br>
    <br>
    -From a reboot, here's the output of "sudo ps -ef | grep
    mythfrontend"<br>
    <br>
    don@nick:~$ sudo ps -ef | grep mythfrontend<br>
    don&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2270&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 14:04 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 /bin/sh
    /usr/bin/mythfrontend --service<br>
    don&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2635&nbsp; 2270&nbsp; 3 14:04 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:06
    /usr/bin/mythfrontend.real --syslog local7<br>
    don&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3000&nbsp; 2892&nbsp; 0 14:07 pts/2&nbsp;&nbsp;&nbsp; 00:00:00 grep --color=auto
    mythfrontend<br>
    don@nick:~$<br>
    <br>
    <br>
    <br>
    <br>
    -I reproduced failure (tune channel, change channel, kill X, screen
    black, but audio not playing this time)<br>
    -Logged into X<br>
    -Run "sudo ps -ef | grep mythfrontend"; here's the output<br>
    <br>
    don@nick:~$ sudo ps -ef | grep mythfrontend<br>
    don&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2270&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 14:04 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 /bin/sh
    /usr/bin/mythfrontend --service<br>
    don&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2635&nbsp; 2270 12 14:04 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:01:43
    /usr/bin/mythfrontend.real --syslog local7<br>
    don&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3553&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 14:18 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 /bin/sh
    /usr/bin/mythfrontend --service<br>
    don&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3609&nbsp; 3553 17 14:18 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:01
    /usr/bin/mythfrontend.real --syslog local7<br>
    don&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3760&nbsp; 2892&nbsp; 0 14:18 pts/2&nbsp;&nbsp;&nbsp; 00:00:00 grep --color=auto
    mythfrontend<br>
    don@nick:~$<br>
    <br>
    ...kinda looks like two instances of mythfrontend are running.<br>
    <br>
    Tried playing LiveTv...got audio error.&nbsp; Tried switching
    source...pvr-150 not shown in the list.<br>
    <br>
  </body>
</html>