]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-volser-earlier-logging-20070627
authorDerrick Brashear <shadow@dementia.org>
Thu, 28 Jun 2007 03:13:44 +0000 (03:13 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 28 Jun 2007 03:13:44 +0000 (03:13 +0000)
deal with the changes to deal with reconnecting in the unix domain fsync socket

(cherry picked from commit f7c4a7e538a3f4cca0c1ae988f56561ac5383ab2)

src/volser/volmain.c

index f30ae9cf4efd29c6154f38dbdceec38086336ff4..a83ad6bf73c525cbcdf41ea7269a7c16e0cc4421 100644 (file)
@@ -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();
 
     {