From 4b7a327e1ce555de1ecfd735237b3cb7111c0c92 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 28 Jun 2007 03:13:44 +0000 Subject: [PATCH] STABLE14-volser-earlier-logging-20070627 deal with the changes to deal with reconnecting in the unix domain fsync socket (cherry picked from commit f7c4a7e538a3f4cca0c1ae988f56561ac5383ab2) --- src/volser/volmain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/volser/volmain.c b/src/volser/volmain.c index f30ae9cf4..a83ad6bf7 100644 --- a/src/volser/volmain.c +++ b/src/volser/volmain.c @@ -422,6 +422,10 @@ main(int argc, char **argv) exit(1); } #endif + /* Open VolserLog and map stdout, stderr into it; VInitVolumePackage can + log, so we need to do this here */ + OpenLog(AFSDIR_SERVER_VOLSERLOG_FILEPATH); + VInitVolumePackage(volumeUtility, 0, 0, CONNECT_FS, 0); /* For nuke() */ Lock_Init(&localLock); @@ -471,8 +475,6 @@ main(int argc, char **argv) rx_SetRxDeadTime(420); memset(busyFlags, 0, sizeof(busyFlags)); - /* Open FileLog and map stdout, stderr into it */ - OpenLog(AFSDIR_SERVER_VOLSERLOG_FILEPATH); SetupLogSignals(); { -- 2.39.5