chiark / gitweb /
core: Make sure a stamp file exists for all Persistent=true timers
authorThomas Bächler <thomas@archlinux.org>
Wed, 2 Apr 2014 18:18:44 +0000 (20:18 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 12 Apr 2014 14:20:55 +0000 (10:20 -0400)
commit472fc28fdade525e700ebf4b25d026a8c907796d
treecf060317b88ce3a77f4875a26ec106c9a6c15a9e
parentbaf167ee0a2953f98e4e7d4c35752ef737832674
core: Make sure a stamp file exists for all Persistent=true timers

If a persistent timer has no stamp file yet, it behaves just like a normal
timer until it runs for the first time. If the system is always shut down
while the timer is supposed to run, a stamp file is never created and
Peristent=true has no effect.

This patch fixes this by creating a stamp file with the current time
when the timer is first started.
src/core/timer.c