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, 10 Dec 2018 20:24:49 +0000 (15:24 -0500)
commit420fd242c2ff0b1d6402c509aca35ffc15430e54
treea74877e6c72ec1dc092f2864ec6bc0ad13ee66fc
parent2e8a93948af28e12866f415d40b5c414ad77baf8
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.025821 seconds and 4 git commands to generate.