[dm-devel] [PATCH V2] multipathd daemon: Fix incorrect use of CLOCK_MONOTONIC in pthread
Bart Van Assche
Bart.VanAssche at wdc.com
Wed Aug 9 16:25:06 UTC 2017
On Thu, 2017-08-10 at 00:21 +0800, Gris Ge wrote:
> diff --git a/multipathd/cli.c b/multipathd/cli.c
> index 32d49766..002abe61 100644
> --- a/multipathd/cli.c
> +++ b/multipathd/cli.c
> @@ -475,7 +475,7 @@ parse_cmd (char * cmd, char ** reply, int * len, void * data, int timeout )
> /*
> * execute handler
> */
> - if (clock_gettime(CLOCK_MONOTONIC, &tmo) == 0) {
> + if (clock_gettime(CLOCK_REALTIME, &tmo) == 0) {
> tmo.tv_sec += timeout;
> } else {
> tmo.tv_sec = 0;
Reviewed-by: Bart Van Assche <bart.vanassche at wdc.com>
More information about the dm-devel
mailing list