From: Dana Jansens Date: Mon, 28 Jan 2008 15:21:29 +0000 (-0500) Subject: unlink the log file when opening it so you get a new file X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=45e2039a58d41a9e104a61232b30cea5d3d2fce6;p=chaz%2Fopenbox unlink the log file when opening it so you get a new file --- 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); }