From 1b5cdd76b76a98e464f352c1d44be3ea0b279c87 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Tue, 7 Sep 2010 01:04:10 +0200 Subject: s3/ldap: use monotonic clock for timeouts in smbldap tevent would need monotonic clock features to make also smbldap's idle handling aware of backward clock jumps. Other areas in smbldap are clock jump save now. --- source3/include/smbldap.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/include/smbldap.h') diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h index 69b4153f28..060fcc21eb 100644 --- a/source3/include/smbldap.h +++ b/source3/include/smbldap.h @@ -153,7 +153,7 @@ int smbldap_modify(struct smbldap_state *ldap_state, struct smbldap_state { LDAP *ldap_struct; pid_t pid; - time_t last_ping; + time_t last_ping; /* monotonic */ /* retrive-once info */ const char *uri; @@ -166,11 +166,11 @@ struct smbldap_state { unsigned int num_failures; - time_t last_use; + time_t last_use; /* monotonic */ struct event_context *event_context; struct timed_event *idle_event; - struct timeval last_rebind; + struct timeval last_rebind; /* monotonic */ }; /* struct used by both pdb_ldap.c and pdb_nds.c */ -- cgit