diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-01-11 17:19:25 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-01-18 15:09:36 -0500 |
commit | 2c86ba5a51b29e41bdfde6771d93cc5317b253cf (patch) | |
tree | 7602767228b6ec240f5816f33f21be23d5331013 /man | |
parent | 45ea658326ad0208031a335de8e52a8a22c6bbfa (diff) |
sd-event: check clock argument to sd_event_now()
sd_event_now() is a public function, so we must check all
arguments for validity. Update man page and add tests.
Sample debug message:
Assertion 'IN_SET(clock, CLOCK_REALTIME, CLOCK_REALTIME_ALARM, CLOCK_MONOTONIC, CLOCK_BOOTTIME, CLOCK_BOOTTIME_ALARM)' failed at src/libsystemd/sd-event/sd-event.c:2719, function sd_event_now(). Ignoring.
Diffstat (limited to 'man')
-rw-r--r-- | man/sd_event_now.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/man/sd_event_now.xml b/man/sd_event_now.xml index 58d7375eac..6cec0446c8 100644 --- a/man/sd_event_now.xml +++ b/man/sd_event_now.xml @@ -115,12 +115,18 @@ </varlistentry> <varlistentry> + <term><constant>-EOPNOTSUPP</constant></term> + + <listitem><para>Unsupported clock type. + </para></listitem> + </varlistentry> + + <varlistentry> <term><constant>-ECHILD</constant></term> <listitem><para>The event loop object was created in a different process.</para></listitem> </varlistentry> - </variablelist> </refsect1> |