From 45e2039a58d41a9e104a61232b30cea5d3d2fce6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 28 Jan 2008 10:21:29 -0500 Subject: [PATCH] unlink the log file when opening it so you get a new file --- openbox/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbox/debug.c b/openbox/debug.c index 749bc32e..5a976d0c 100644 --- a/openbox/debug.c +++ b/openbox/debug.c @@ -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); } -- 2.45.2