2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

ovs-thread: Add support for various thread-related assertions.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
Ben Pfaff
2013-06-19 13:07:35 -07:00
parent 1514b27555
commit 728a8b141f
8 changed files with 100 additions and 8 deletions

View File

@@ -27,6 +27,7 @@
#include <unistd.h>
#include "byte-order.h"
#include "coverage.h"
#include "ovs-thread.h"
#include "vlog.h"
VLOG_DEFINE_THIS_MODULE(util);
@@ -339,6 +340,9 @@ set_program_name__(const char *argv0, const char *version, const char *date,
const char *time)
{
const char *slash = strrchr(argv0, '/');
assert_single_threaded();
program_name = slash ? slash + 1 : argv0;
free(program_version);