[mythtv-commits] Ticket #7762: Autoshutdown slave feature enhanced

MythTV mythtv at cvs.mythtv.org
Thu Feb 11 15:57:14 UTC 2010


#7762: Autoshutdown slave feature enhanced
-------------------------------+--------------------------------------------
 Reporter:  gmembre@…          |       Owner:  cpinkham
     Type:  enhancement        |      Status:  assigned
 Priority:  minor              |   Milestone:          
Component:  MythTV - General   |     Version:  unknown 
 Severity:  medium             |     Mlocked:  0       
-------------------------------+--------------------------------------------

Comment(by gmembre@…):

 @Chris : when you say that EncoderLink::GoToSleep() and
 PlaybackSock::GoToSleep() should return an integer, it mean that
 MainServer::HandleGoToSleep() is able to return something else than OK or
 BUSY. It may be usefull in case the SleepCommand failed to execute, so I
 have to move SendResponse(pbs->getSocket(), strlist); at the end of this
 function in order to return an error to the MBE if needed. But,
 myth_system() is a blocking function, if the SleepCommand doesn't return
 quickly while shutting down the system, the slave mythtv backend while be
 killed before it can send its response to the MBE, so the MBE will think
 something wrong occurs in the slave. What do you think about it ?

 @simon : When I wrote my patch, I didn't saw SleepCommand in this manner,
 but now, I better understand. I'll make the correction.
 I also can make the DailyWakeup period be setup for each slave (but not
 thrugh any setup screen for the moment). For me, any job in the jobqueue
 will be consumed when a slave wakes up but it is not a reason to wake up a
 slave to just do job. At home, my slave backend is my desktop computer, it
 wakes up every day at 7pm, a few minutes before I came back from work : my
 computer is waiting for me and it starts working in background on the
 jobqueue.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7762#comment:10>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list