unlink the log file when opening it so you get a new file
This commit is contained in:
parent
e0eb926ac2
commit
45e2039a58
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ void ob_debug_startup(void)
|
|||
else {
|
||||
gchar *name = g_build_filename(obt_paths_cache_home(p),
|
||||
"openbox", "openbox.log", NULL);
|
||||
/* unlink it before opening to remove competition */
|
||||
unlink(name);
|
||||
log_file = fopen(name, "w");
|
||||
g_free(name);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue