Skip to content
  • Mitsutoshi Aoe's avatar
    rts: Flush eventlog in hs_init_ghc (fixes #15440) · 50e4e48b
    Mitsutoshi Aoe authored and Ben Gamari's avatar Ben Gamari committed
    Without this change RTS typically doesn't flush some important
    events until the process terminates or it doesn't write them at
    all in case it terminates abnormally.
    
    Here is a list of such events:
    
    * EVENT_WALL_CLOCK_TIME
    * EVENT_OS_PROCESS_PID
    * EVENT_OS_PROCESS_PPID
    * EVENT_RTS_IDENTIFIER
    * EVENT_PROGRAM_ARGS
    * EVENT_PROGRAM_ENV
    
    (cherry picked from commit 7a3e1b25)
    50e4e48b