OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-3969-g2286fac
Gerrit Code Review
Tue, 8 Oct 2013 05:52:33 -0700 (PDT)
The following commit has been merged in the master branch:
Author: Ben Kaduk <firstname.lastname@example.org>
Date: Mon Jul 29 14:22:46 2013 -0400
Reorder bosserver startup prior to pthreads
The rx calls will take locks when built in pthreaded mode, and must go
after rx_Init(). Some other setup would benefit from using time-domain
locking and should run before we go multithreaded.
In particular, initialize bozo_confdir while single-threaded, as it is
otherwise protected by the afsconf internal locking. While here, pass
NULL to afsconf_SetCellInfo -- bozo_confdir would always be NULL there,
Change a couple globals into local variables in main; they are just
used to defer setup after argument parsing.
ReadBozoFile will create worker threads to monitor child processes,
so it cannot move up too far.
Change when we daemonize, too.
Reviewed-by: Chas Williams - CONTRACTOR <email@example.com>
Reviewed-by: Derrick Brashear <firstname.lastname@example.org>
Tested-by: BuildBot <email@example.com>
src/bozo/bosserver.c | 169 ++++++++++++++++++++++++++------------------------
1 files changed, 88 insertions(+), 81 deletions(-)
OpenAFS Master Repository