From: Mikael Magnusson Date: Thu, 19 Feb 2009 21:19:27 +0000 (+0100) Subject: Close openbox.log when restarting X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=d69530a45a42efab0d34dcdb35b0f6fc887dafac;p=chaz%2Fopenbox Close openbox.log when restarting --- diff --git a/openbox/openbox.c b/openbox/openbox.c index 5be4e785..e71465a6 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -417,6 +417,7 @@ gint main(gint argc, gchar **argv) obt_display_close(); if (restart) { + ob_debug_shutdown(); if (restart_path != NULL) { gint argcp; gchar **argvp; @@ -470,7 +471,8 @@ gint main(gint argc, gchar **argv) g_free(ob_sm_id); g_free(program_name); - ob_debug_shutdown(); + if (!restart) + ob_debug_shutdown(); return exitcode; }