aboutsummaryrefslogtreecommitdiff
path: root/lib/fatal-signal.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-06-24 10:54:49 -0700
committerBen Pfaff <blp@nicira.com>2013-06-28 16:09:38 -0700
commit10a89ef04df5669c5cdd02f786150a7ab8454e01 (patch)
tree8c921735df6d0dca97df88af70e986c4fdf38dca /lib/fatal-signal.c
parent5fcbed7479c5f1d2cc08c3f544f10dbbe8ec0d90 (diff)
Replace all uses of strerror() by ovs_strerror(), for thread safety.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/fatal-signal.c')
-rw-r--r--lib/fatal-signal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fatal-signal.c b/lib/fatal-signal.c
index 8c66ef5e..1770457f 100644
--- a/lib/fatal-signal.c
+++ b/lib/fatal-signal.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -84,7 +84,7 @@ fatal_signal_init(void)
xsigaction(sig_nr, NULL, &old_sa);
if (old_sa.sa_handler == SIG_DFL
&& signal(sig_nr, fatal_signal_handler) == SIG_ERR) {
- VLOG_FATAL("signal failed (%s)", strerror(errno));
+ VLOG_FATAL("signal failed (%s)", ovs_strerror(errno));
}
}
atexit(atexit_handler);
@@ -238,7 +238,7 @@ fatal_signal_unlink_file_now(const char *file)
{
int error = unlink(file) ? errno : 0;
if (error) {
- VLOG_WARN("could not unlink \"%s\" (%s)", file, strerror(error));
+ VLOG_WARN("could not unlink \"%s\" (%s)", file, ovs_strerror(error));
}
fatal_signal_remove_file_to_unlink(file);