Create logdir before making first tracking write

This commit is contained in:
Miroslav Lichvar 2011-06-14 19:30:42 +02:00
parent 86531a51a7
commit 103a520aa6

4
main.c
View file

@ -366,6 +366,8 @@ int main
SYS_DropRoot(user); SYS_DropRoot(user);
} }
LOG_CreateLogFileDir();
REF_Initialise(); REF_Initialise();
SST_Initialise(); SST_Initialise();
BRD_Initialise(); BRD_Initialise();
@ -377,8 +379,6 @@ int main
MNL_Initialise(); MNL_Initialise();
TMC_Initialise(); TMC_Initialise();
LOG_CreateLogFileDir();
/* From now on, it is safe to do finalisation on exit */ /* From now on, it is safe to do finalisation on exit */
initialised = 1; initialised = 1;