diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-28 10:21:29 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-31 12:54:52 -0500 |
| commit | 45e2039a58d41a9e104a61232b30cea5d3d2fce6 (patch) | |
| tree | d99118a7c4eeded0db08a92cd5a9f03aeac3772d /openbox | |
| parent | e0eb926ac20ca0e153c07c377206210c82a8768b (diff) | |
unlink the log file when opening it so you get a new file
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |
