commit | 333c3a86cb1e0e05e53c0bb6e868c267e2b145d5 | [log] [tgz] |
---|---|---|
author | Cyril Hrubis <chrubis@suse.cz> | Thu Sep 24 16:36:49 2015 +0200 |
committer | Cyril Hrubis <chrubis@suse.cz> | Thu Sep 24 16:36:49 2015 +0200 |
tree | f572007f07508ea9c741404d0c509d81bd5f8a33 | |
parent | aee1076160a48a03d35bb8a518c1acf7aa07b2cd [diff] |
clock_settime02: fix for linux kernel >= 4.2 In linux 4.2 new check has been added to do_settimeofday64(). As a result, one can't set the CLOCK_REALTIME time prior to (1970 + system uptime). e1d7ba8735551ed79c7a0463a042353574b96da3 "time: Always make sure wall_to_monotonic isn't positive" To fix this change the seconds to be set by settimeofday() to gettimeofday() + 1s. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>