about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-12-04 12:14:51 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-12-04 12:14:51 +0100
commitceaacba1c243892114c685697f28dc746337a071 (patch)
tree741eabede58a586311123ddfe815080491ca874c /src
parent6bee1dcecd38196585c2d1c7c18cc456ebc2c834 (diff)
downloadbox64-ceaacba1c243892114c685697f28dc746337a071.tar.gz
box64-ceaacba1c243892114c685697f28dc746337a071.zip
[RCFILE] Fixed handling of BOX64_TRACE_FILE
Diffstat (limited to 'src')
-rw-r--r--src/tools/rcfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/rcfile.c b/src/tools/rcfile.c
index cf0f4e2c..76f61c07 100644
--- a/src/tools/rcfile.c
+++ b/src/tools/rcfile.c
@@ -406,11 +406,11 @@ void ApplyParams(const char* name)
     if(param->is_ld_library_path_present) AppendList(&my_context->box64_ld_lib, param->ld_library_path, 1);
     if(param->is_box64_path_present) AppendList(&my_context->box64_path, param->box64_path, 1);
     if(param->is_trace_file_present) {
+        // open a new ftrace...
         if(ftrace_has_pid) {
-            // open a new ftrace...
             fclose(ftrace);
-            openFTrace(param->trace_file);
         }
+        openFTrace(param->trace_file);
     }
     if(param->is_emulated_libs_present) {
         AppendList(&my_context->box64_emulated_libs, param->emulated_libs, 0);