c66acc Fix: tools: Add the http-equiv header to crm_mon at the right time.

3 files Authored by Chris Lumens 4 years ago, Committed by Packit Service 4 years ago,
    Fix: tools: Add the http-equiv header to crm_mon at the right time.
    
    This header is only getting added on termination, which is not a lot of
    help if you're running crm_mon in daemonize mode.  Putting this header
    in at the right time requires a couple changes:
    
    * pcmk__html_add_header doesn't need a parent argument.  It was not
    being used in the first place.
    
    * The extra_headers list in output_html.c should not be freed in the
    reset function.  This means it would get freed after every time the
    daemonized output is refreshed, which means the header would have to be
    added every time too.  extra_headers will now only be freed when the
    program exits.  This is a behavior change, but I can't see why it's
    going to be a problem.
    
    * To support that, we need to copy each item in the extra_headers list
    when it gets added to the output XML document.  This prevents segfaults
    when we later free that document.
    
    * handle_html_output no longer needs to exist.  That function only
    existed to add the http-equiv header at the end, which is wrong.
    
    patch_name: 010-crm_mon.patch
    present_in_specfile: true
    location_in_specfile: 10
    squash_commits: true
    
        
file modified
+2 -3
file modified
+4 -3
file modified
+7 -19