[mythtv-commits] Ticket #9102: Failing myth_system command during shutdown or reboot doesn't try dbus
MythTV
mythtv at cvs.mythtv.org
Sat Oct 16 03:09:31 UTC 2010
#9102: Failing myth_system command during shutdown or reboot doesn't try dbus
--------------------------------+-------------------------------------------
Reporter: superm1@… | Type: defect
Status: new | Priority: minor
Milestone: unknown | Component: MythTV - General
Version: Trunk Head | Severity: medium
Keywords: | Ticket locked: 0
--------------------------------+-------------------------------------------
Currently, if a user defines a Halt Command or Reboot Command they're
attempted first when shutdown or reboot are selected. If the command
exits a non-zero return value, the function simply fails rather than
continuing to try other venues.
The attached patch modifies this behavior:
0) Set return value to -1
1) Check for an empty command
2a) If non-empty, run myth_system, set return value
2b) If empty, go to 3
3) If the return value was non-zero, try Dbus
4) If dbus fails, try a hardcoded /sbin/halt etc
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/9102>
MythTV <http://www.mythtv.org/>
MythTV Media Center
More information about the mythtv-commits
mailing list