Skip to content

Commit

Permalink
make subprocess generate viztmp file (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
TTianshun authored Jan 6, 2024
1 parent 68b7784 commit fda4806
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/viztracer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def term_handler(signalnum, frame):
signal.signal(signal.SIGTERM, term_handler)

if options.subprocess_child:
tracer.label_file_to_write()
multiprocessing.util.Finalize(tracer, tracer.exit_routine, exitpriority=-1)
else:
multiprocessing.util.Finalize(self, self.exit_routine, exitpriority=-1)
Expand Down

0 comments on commit fda4806

Please sign in to comment.