aboutsummaryrefslogtreecommitdiff
path: root/lib/uuid.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-03-31 16:23:50 -0700
committerBen Pfaff <blp@nicira.com>2011-04-04 10:58:55 -0700
commit279c9e030818e039bb1c26be76e2cc1e8f6b13a6 (patch)
treed0b34b231861a6611ebe227326365c778aa3eac8 /lib/uuid.c
parentfcaddd4dd1e8feefc09ea2664ad51fb669d136f8 (diff)
Log anything that could prevent a daemon from starting.
If a daemon doesn't start, we need to know why. Being able to consistently consult the log to find out is helpful.
Diffstat (limited to 'lib/uuid.c')
-rw-r--r--lib/uuid.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/uuid.c b/lib/uuid.c
index e2590242..8b02bf55 100644
--- a/lib/uuid.c
+++ b/lib/uuid.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2008, 2009, 2010 Nicira Networks
+/* Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,6 +27,7 @@
#include "aes128.h"
#include "entropy.h"
#include "sha1.h"
+#include "timeval.h"
#include "util.h"
static struct aes128 key;
@@ -212,9 +213,7 @@ do_init(void)
/* Get seed data. */
get_entropy_or_die(random_seed, sizeof random_seed);
- if (gettimeofday(&now, NULL)) {
- ovs_fatal(errno, "gettimeofday failed");
- }
+ xgettimeofday(&now);
pid = getpid();
ppid = getppid();
uid = getuid();