chiark / gitweb /
logind: tighten assertion in execute_shutdown_or_sleep()
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Thu, 24 Aug 2017 14:21:21 +0000 (15:21 +0100)
committerSven Eden <yamakuzure@gmx.net>
Thu, 24 Aug 2017 14:21:21 +0000 (15:21 +0100)
commitcf620cb8882004665dd54904f38ca18ec5d157b0
tree2367a5ea3cbffdff40c0623851e09beb7875ca2f
parent0bd783770a0b8216a99a78146f83c942e9042233
logind: tighten assertion in execute_shutdown_or_sleep()

Following commit b498d6ea, I belated realized we should tighten the
assertions as well, to make sure that we're setting `m->action_what` to
represent an action in progress.  (The check for an action in progress is
to compare `m->action_what` to zero)
src/login/logind-dbus.c