Skip to content

Commit

Permalink
temp fix, no crash for now and logging not happenjing
Browse files Browse the repository at this point in the history
  • Loading branch information
xwings committed Jan 24, 2020
1 parent f9eeeaa commit a15d1a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qiling/os/posix/syscall.py
Expand Up @@ -1150,7 +1150,11 @@ def ql_syscall_vfork(ql, null0, null1, null2, null3, null4, null5):
regreturn = 0
if ql.thread_management != None:
ql.thread_management.cur_thread.set_thread_log_file(ql.log_dir)
#else:
else:
if ql.log_split:
#ql.log_file = (ql.log_file + "_" + str(pid))
_logger = ql_setup_logging_stream(ql.output)
_logger = ql_setup_logging_file(ql.output, ql.log_file , _logger)
# if ql.log_dir != None:
# ql.log_file_fd = open(ql.log_dir + "_" + str(os.getpid()), 'w+')
#ql.log_file_fd = logging.basicConfig(filename=ql.log_file_name + "_" + str(os.getpid()) + ".qlog", filemode='w+', level=logging.DEBUG, format='%(message)s')
Expand Down

0 comments on commit a15d1a0

Please sign in to comment.