summaryrefslogtreecommitdiffstats
path: root/tests/test-privs.c
Commit message (Collapse)AuthorAgeFilesLines
* Make logging (lib.c) and privileges (privs.c) pthread safepaulo2009-11-301-6/+22
| | | | | | | | | | | 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
* 2005-10-11 Paul Jakma <paul.jakma@sun.com>paul2005-10-111-0/+152
* test-privs.c: Privileges unit test. * Makefile.am: build testprivs * aspath_test.c: fix a few sign warnings