[mythtv-commits] Ticket #6066: Wakeup time not set if Myth shuts down just before a scheduled recording
MythTV
mythtv at cvs.mythtv.org
Fri Jul 17 14:43:33 UTC 2009
#6066: Wakeup time not set if Myth shuts down just before a scheduled recording
---------------------------------------+------------------------------------
Reporter: bullestock at bullestock.net | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythshutdown | Version: 0.21-fixes
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------------------+------------------------------------
Comment(by laga):
I've attached two patches.
6060_1.diff is against the backend:
* Block shutdown if we're already past StartUpSecsBeforeRecording. I'm
not sure if I need to add StartUpSecsBeforeRecording again in line 2157.
6060_2.diff is against mythwelcome:
* If we want to shut down and the wakeup time (or time for the next
recording in mythshutdown terms - slightly confusing) is less than 100s in
the past, assume that we should be awake and abort the shutdown.
These patches need some review because I'm not sure if I got the big
picture. It'd also be good if the OP could try those. The second patch is
not really necessary, I just added it to avoid a race condition where
Mythbackend decides it's okay to call mythshutdown and for whatever reason
that call takes enough for mythshutdown to decide that the startup time is
in the past.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6066#comment:2>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list