Skip to contentSkip to conversation

master - cleanup: always set nsec

PATCH Zdenek Kabelac 1 participant 1 message Oct 13, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=842a7a17e3c0ffc0467ef23a3b59e4e8af2c8d74
Commit:        842a7a17e3c0ffc0467ef23a3b59e4e8af2c8d74
Parent:        f4fb97c85082b964397a4e7930d7aa809ffd58f9
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Oct 13 09:39:18 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Oct 13 15:22:57 2015 +0200

cleanup: always set nsec

---
 daemons/dmeventd/dmeventd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
daemons/dmeventd/dmeventd.c +1 -1
index e2daef4..7ad30b3 100644
@@ -568,12 +568,12 @@ static void *_timeout_thread(void *unused __attribute__((unused)))
 	time_t curr_time;
 
 	DEBUGLOG("Timeout thread starting.");
-	timeout.tv_nsec = 0;
 	pthread_cleanup_push(_exit_timeout, NULL);
 	pthread_mutex_lock(&_timeout_mutex);
 
 	while (!dm_list_empty(&_timeout_registry)) {
 		timeout.tv_sec = 0;
+		timeout.tv_nsec = 0;
 		curr_time = time(NULL);
 
 		dm_list_iterate_items_gen(thread, &_timeout_registry, timeout_list) {