Fix: rotation_unavailable returned on failure to read time
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 22 Nov 2018 01:53:43 +0000 (20:53 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 3 Dec 2018 00:41:01 +0000 (19:41 -0500)
commit938255db08ff910109dd372adc8fb1cf406162e0
treeb26d2b14e77b3033075cb214378908e0089801be
parent3cf0ebeef90a629c59333544a9fb3bd75f2dbfc6
Fix: rotation_unavailable returned on failure to read time

A "rotation feature unavailable" error code is returned if the
session daemon fails to sample time. The TIME(2) man page has
makes no mention of an error that could happen in this use case
(as time()'s parameter is NULL, EFAULT does not apply).

However, a more general error code is more appropriate should
this call fail.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c
This page took 0.024814 seconds and 4 git commands to generate.