Skip to content
  • Mitsutoshi Aoe's avatar
    rts: Flush eventlog in hs_init_ghc (fixes #15440) · 7a3e1b25
    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
    7a3e1b25