]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-event/sd-event.c
sd-event: permit a USEC_INFINITY timeout as an alternative to a disabling an event...
authorLennart Poettering <lennart@poettering.net>
Sun, 31 Jan 2016 23:20:18 +0000 (00:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Feb 2016 21:18:15 +0000 (22:18 +0100)
commit393003e1debf7c7f75beaacbd532b92c3e3dc729
tree7202950939e4249129a2446695257f2e9b81eda0
parent1bce0ffa66f329bd50d8bfaa943a755caa65b269
sd-event: permit a USEC_INFINITY timeout as an alternative to a disabling an event source

This should simplify handling of time events in clients and is in-line with the USEC_INFINITY macro we already have.
This way setting a timeout to 0 indicates "elapse immediately", and a timeout of USEC_INFINITY "elapse never".
man/sd_event_add_time.xml
src/libsystemd/sd-event/sd-event.c