diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-07-30 09:18:35 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-07-30 09:18:35 +0100 |
commit | dd6832985c0ac4dd71b961010fb09916aa69d75a (patch) | |
tree | 90ded31f3acc43202c8a33101dfc63ef9257fb4c /tools/console/Makefile | |
parent | 67e5041100ce387699722aec096a37e6d58a290e (diff) | |
download | xen-dd6832985c0ac4dd71b961010fb09916aa69d75a.tar.gz xen-dd6832985c0ac4dd71b961010fb09916aa69d75a.tar.bz2 xen-dd6832985c0ac4dd71b961010fb09916aa69d75a.zip |
xenconsoled: replace gettimeofday with clock_gettime
Currently if someone changes the date on the host, xenconsoled may
behave incorrectly due to the use of gettimeofday for the rate control
algorithm. For example I was able to hang the console connected to a
guest just setting the date forward 20 years. To solve the problem we
need to use a time source that doesn't change start point, that is
clock_gettime with CLOCK_MONOTONIC. The only bad side effect is that
it introduces a dependency to librt, but I think is well worth it.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'tools/console/Makefile')
-rw-r--r-- | tools/console/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/console/Makefile b/tools/console/Makefile index 3d7e0fe307..10e909a0b6 100644 --- a/tools/console/Makefile +++ b/tools/console/Makefile @@ -21,7 +21,7 @@ clean: xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c)) $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) \ - $(UTIL_LIBS) $(SOCKET_LIBS) + $(UTIL_LIBS) $(SOCKET_LIBS) -lrt xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c)) $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) \ |