[mythtv-commits] Ticket #155: Patch to allow connections to the backend that don't block shutdown

MythTV mythtv at cvs.mythtv.org
Sat Jul 23 08:23:22 EDT 2005


#155: Patch to allow connections to the backend that don't block shutdown
--------------------+-------------------------------------------------------
       Id:  155     |      Status:  new                     
Component:  mythtv  |    Modified:  Sat Jul 23 12:23:21 2005
 Severity:  medium  |   Milestone:                          
 Priority:  minor   |     Version:  head                    
    Owner:  ijr     |    Reporter:  mythtv at dsl.pipex.com    
--------------------+-------------------------------------------------------
 This patch allows for connections to the backend that don't stop
 the main server from shutting down the system if it is idle.

 Useful if you want to create a status app that connects to the
 backend to query the server for current recording status, scheduled
 program info and receive schedule/recordings change events etc.
 but don't want to prevent the backend from shutting things down if it is
 idle.

 The patch adds two new commands you can send to the server
 "ALLOW_SHUTDOWN" and "BLOCK_SHUTDOWN"
 they simply set a flag in the playbacksock. When the main
 server checks for active connections in MainServer::isClientConnected()
 it ignores any connections that don't have the blockshutdown flag
 set. The default behavior is to block shutdown so everything will
 work has it does now unless the server receives a command to change
 that.

 There are two new helper functions  MythContext::AllowShutdown()
 and MythContext::BlockShutdown() which sets how the two sockets
 created by the MythContext object block or allow the backend to
 shutdown.

 I have a further patch that adds a welcome/status app to myth that
 is designed to be run all the time but will usually only be visible
 if the frontend is not running. ie the system has been started to
 record a scheduled recording for example. It displays some status
 information about what Myth is upto at the moment; recording,
 grabbing EPG data, com. flagging, transcoding etc. Also shows what
 is currently recording, and what the next scheduled recording is.
 It also has a button which allows you to start the frontend if you want.

 I'll send it to the tracker later if this patch gets the thumbs up.

 Paul

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/155>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list