No subject


Wed Mar 17 21:23:44 UTC 2010


halt/reboot/whatever but not do any of the cleanup.  Note that I'm not a
Qt/GUI coding expert so could be way off the mark.

It would *seem* to me that the ExitPrompter::halt() and
ExitPrompter::reboot() just need to call qApp->exit(), but if Kenneth
Emerson is seeing orphans even when just exitting maybe its more complicated
than that?

Any Devs out there with an opinion?  I'm guessing I can just kill the
frontend with a SIGTERM in my script before hibernating as a work around...

Cheers, Bryan.

--0016e6d7e491450f2b0482285687
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote">On 16 March 2010 14:39, Bryan Bennetts <span dir=
=3D"ltr">&lt;<a href=3D"mailto:bryan.bennetts at gmail.com" target=3D"_blank">=
bryan.bennetts at gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmai=
l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left=
:1ex">

Hi all,<div><br></div><div>I&#39;m running a system with separate FE and BE=
 machines (using gentoo). =A0Prior to upgrading to 0.22, I could shutdown o=
r hibernate the frontend and after the usual idle time the backend would sh=
ut itself down also. =A0With the hibernate I needed to stick a &#39;sleep 5=
&#39; in the hibernate script to give the frontend a chance to exit prior t=
o actually hibernating.</div>


<div><br></div><div>I&#39;ve upgraded to 0.22 and now the backend no longer=
 shuts down when the frontend machine has shutdown. =A0What *appears* to be=
 happening is that the frontend machine is powering down before the fronten=
d exits,=A0=A0I&#39;ve stuck a long timeout in the hibernate script and the=
 frontend just doesn&#39;t seem to be exiting. =A0Has anyone seen an issue =
like this? =A0Is it expected behaviour and I need to change my configuratio=
n somehow? =A0Of course I could be barking up the wrong tree...</div>


<div><br></div></blockquote><div><br></div><div>Hmm, on the face of it (and=
 I&#39;ve only done a very small amount of digging) it would appear that my=
 problem stems from=A0<a href=3D"http://svn.mythtv.org/trac/changeset/19398=
" target=3D"_blank">changeset #19398</a>, prior to this the code would loop=
 thus :</div>

<div><br></div><div><div>=A0</div><div>=A0=A0 =A0 =A0 =A0qApp-&gt;exec();=
=A0</div><div>} while (!(exitstatus =3D handleExit()));=A0</div><div><br></=
div><div>Then when the user chose to exit the code would call the halt/rebo=
ot is required and proceed to teardown the networkControl, kill the mainwin=
dow etc. =A0This is why I needed the sleep in my hibernate script - to give=
 the application chance to exit cleanly before hibernating.</div>

<div><br></div><div>From #19398 onwards, it looks as if it will just hit th=
e halt/reboot/whatever but not do any of the cleanup. =A0Note that I&#39;m =
not a Qt/GUI coding expert so could be way off the mark.</div><div><br></di=
v>

<div>It would *seem* to me that the=A0ExitPrompter::halt() and ExitPrompter=
::reboot() just need to call qApp-&gt;exit(), but if=A0<span class=3D"Apple=
-style-span" style=3D"font-family: arial, sans-serif; font-size: 13px; bord=
er-collapse: collapse; ">Kenneth Emerson is seeing orphans even when just e=
xitting maybe its more complicated than that?</span></div>
<div><span class=3D"Apple-style-span" style=3D"font-family: arial, sans-ser=
if; font-size: 13px; border-collapse: collapse; "><br></span></div><div><sp=
an class=3D"Apple-style-span" style=3D"font-family: arial, sans-serif; font=
-size: 13px; border-collapse: collapse; ">Any Devs out there with an opinio=
n? =A0I&#39;m guessing I can just kill the frontend with a SIGTERM in my sc=
ript before hibernating as a work around...</span></div>
<div><span class=3D"Apple-style-span" style=3D"font-family: arial, sans-ser=
if; font-size: 13px; border-collapse: collapse; "><br></span></div><div><sp=
an class=3D"Apple-style-span" style=3D"font-family: arial, sans-serif; font=
-size: 13px; border-collapse: collapse; ">Cheers, Bryan.</span></div>
</div></div>

--0016e6d7e491450f2b0482285687--


More information about the mythtv-users mailing list