[mythtv] Auto-Off Feature

Christian Hoenig me at christianhoenig.de
Mon Nov 24 12:36:56 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Denis Grilli wrote
> gpgkeys: WARNING: this is an *experimental* HKP interface!
> gpgkeys: key 1986C8D0FD8C5AB5 not found on keyserver
>
> Alle 16:27, luned́ 24 novembre 2003, Christian Hoenig ha scritto:
> > I have a patch for mythtv, that includes the shutdown/wakeup stuff into
> > the scheduler. It is not accepted for cvs, because a little thing is
> > missing and I don't know of a easy way to solve that problem.
> > Unfortunately nobody who said 'thats a really easy thing to do' came up
> > with some help yet. So thats still the state of the patch.
>
> Can you explain the problem??

The problem itself really is a minor one, though I could not find a simple, 
suitable way to accomplish it.
Its the following part of the patch:

	@@ -716,6 +732,18 @@
	     else
	         xbox = NULL;
	
	+    //FIXME
	+    // we need to check, if the machine running the frontand is the server, 	
too,	
	+    // so we cannot simply shutdown, but just detach from it.
	+    // The server is responsible for its shutdown
	+
	+    clientIsServerHost = (true);

clientIsServerHost is used to determine, if backendhost == frontendhost, 
because if it is, you are not allowed to call 'Shutdown' from the frontend, 
since the backend/scheduler is responsible for the shutdown then.

So one must find out, if the current frontendhost is a backendhost, too, thats 
all.

I (still) really would like to see this in cvs, so if there is anything else 
that needs to be done, tell me. I want to keep my hands on the patch and I 
want to improve it further if it would be in cvs, but due to its size, its 
already quite hard to maintain it off cvs now.

take care, have fun
/christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/wkG7mauZIX3ydQURAo/EAKDxiZT7pSlhR8IME9eqdrCQgu5kHQCg3m3X
EMHtpcu2as9p5/8sosnhRNg=
=SEMf
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff.sdwu.20031124
Type: text/x-diff
Size: 30328 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20031124/e09d038b/diff.sdwu.bin


More information about the mythtv-dev mailing list