mirror of
git://sourceware.org/git/lvm2.git
synced 2025-10-16 23:33:16 +03:00
o tidy up renaming of archive files.
This commit is contained in:
@@ -649,6 +649,11 @@ static int split(char *str, int *argc, char **argv, int max)
|
||||
return *argc;
|
||||
}
|
||||
|
||||
static void _init_rand(void)
|
||||
{
|
||||
srand((unsigned int) time(NULL) + (unsigned int) getpid());
|
||||
}
|
||||
|
||||
static void __init_log(struct config_file *cf)
|
||||
{
|
||||
char *open_mode = "a";
|
||||
@@ -880,6 +885,8 @@ static int init(void)
|
||||
/* Use LOG_USER for syslog messages by default */
|
||||
init_syslog(LOG_USER);
|
||||
|
||||
_init_rand();
|
||||
|
||||
/* send log messages to stderr for now */
|
||||
init_log(stderr);
|
||||
|
||||
|
Reference in New Issue
Block a user