]> Dogcows Code - chaz/openbox/blobdiff - openbox/openbox.c
Close openbox.log when restarting
[chaz/openbox] / openbox / openbox.c
index 5be4e785e5e32a2e00693c7749f684e40d8d1969..e71465a68db6cb9e075b5a15bbf413901e0e8583 100644 (file)
@@ -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;
 }
This page took 0.022954 seconds and 4 git commands to generate.