resourced_notify(RESOURCED_NOTIFIER_LOW_BATTERY, NULL);
}
-static void poweroff_signal_handler(GVariant *params)
-{
- _E("quit mainloop at poweroff");
- resourced_quit_mainloop();
-}
-
static void systemtime_changed_signal_handler(GVariant *params)
{
resourced_notify(RESOURCED_NOTIFIER_SYSTEMTIME_CHANGED, NULL);
SIGNAL_DEVICED_LCDOFF, proc_dbus_lcd_off, NULL},
{DEVICED_PATH_CORE, DEVICED_INTERFACE_CORE,
SIGNAL_DEVICED_BOOTINGDONE, booting_done_signal_handler, NULL},
- {DEVICED_PATH_POWEROFF, DEVICED_INTERFACE_POWEROFF,
- SIGNAL_DEVICED_POWEROFF_STATE, poweroff_signal_handler, NULL},
+ /* DEVICED_INTERFACE_POWEROFF / SIGNAL_DEVICED_CHANGESTATE left unhandled
+ on purpose - DeviceD sends the signal earlier than supposed to. Nothing
+ is lost though because at some point DeviceD also sends a SIGTERM,
+ which is handled the same way (i.e. quits the main loop). */
{DEVICED_PATH_BATTERY, DEVICED_INTERFACE_BATTERY,
SIGNAL_DEVICED_LOW_BATTERY, low_battery_signal_handler, NULL},
{DUMP_SERVICE_OBJECT_PATH, DUMP_SERVICE_INTERFACE_NAME,