diff options
author | paulo <paul@bayleaf.org.uk> | 2009-11-30 17:19:02 +0000 |
---|---|---|
committer | paulo <paul@bayleaf.org.uk> | 2009-11-30 17:19:02 +0000 |
commit | c1ff9a326120520ea907ab81577d611e179fb87c (patch) | |
tree | 7211c45b96da879807d9e4fd07c357089c88e32c /lib/plist.c | |
parent | c207bd104f5ef825c496d3fbfb8393a45882f16f (diff) | |
download | quagga-c1ff9a326120520ea907ab81577d611e179fb87c.tar.bz2 quagga-c1ff9a326120520ea907ab81577d611e179fb87c.tar.xz |
Make logging (lib.c) and privileges (privs.c) pthread safe
lib.c: use a mutex to protect all public methods. Replaced
code in command.c etc that modified zlog_default directly with
interlocked getters and setters. Requires that vty_log in vty.c
handles its own pthread safety TBA.
privs.c: use a mutex to protect all public methods. Counts RAISE
and LOWER so that privilege stays RAISED until all pthreads
have lowered. Improved messages in test-privs.c
Diffstat (limited to 'lib/plist.c')
-rw-r--r-- | lib/plist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plist.c b/lib/plist.c index 9976b81c..d222a6a8 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -1391,7 +1391,7 @@ vty_show_prefix_entry (struct vty *vty, struct prefix_list *plist, { /* Print the name of the protocol */ if (zlog_default) - vty_out (vty, "%s: ", zlog_proto_names[zlog_default->protocol]); + vty_out (vty, "%s: ", zlog_get_proto_name(NULL)); if (dtype == normal_display) { |