void ga_unset_frozen(GAState *s)

{

    if (!ga_is_frozen(s)) {

        return;

    }



    /* if we delayed creation/opening of pid/log files due to being

     * in a frozen state at start up, do it now

     */

    if (s->deferred_options.log_filepath) {

        s->log_file = fopen(s->deferred_options.log_filepath, "a");

        if (!s->log_file) {

            s->log_file = stderr;

        }

        s->deferred_options.log_filepath = NULL;

    }

    ga_enable_logging(s);

    g_warning("logging re-enabled due to filesystem unfreeze");

    if (s->deferred_options.pid_filepath) {

        if (!ga_open_pidfile(s->deferred_options.pid_filepath)) {

            g_warning("failed to create/open pid file");

        }

        s->deferred_options.pid_filepath = NULL;

    }



    /* enable all disabled, non-blacklisted commands */

    ga_enable_non_blacklisted(s->blacklist);

    s->frozen = false;

    if (!ga_delete_file(s->state_filepath_isfrozen)) {

        g_warning("unable to delete %s, fsfreeze may not function properly",

                  s->state_filepath_isfrozen);

    }

}

void ga_unset_frozen(GAState *s)

{

    if (!ga_is_frozen(s)) {

        return;

    }



    





    if (s->deferred_options.log_filepath) {

        s->log_file = fopen(s->deferred_options.log_filepath, "a");

        if (!s->log_file) {

            s->log_file = stderr;

        }

        s->deferred_options.log_filepath = NULL;

    }

    ga_enable_logging(s);

    g_warning("logging re-enabled due to filesystem unfreeze");

    if (s->deferred_options.pid_filepath) {

        if (!ga_open_pidfile(s->deferred_options.pid_filepath)) {

            g_warning("failed to create/open pid file");

        }

        s->deferred_options.pid_filepath = NULL;

    }



    

    ga_enable_non_blacklisted(s->blacklist);

    s->frozen = false;

    if (!ga_delete_file(s->state_filepath_isfrozen)) {

        g_warning("unable to delete %s, fsfreeze may not function properly",

                  s->state_filepath_isfrozen);

    }

}

        s->log_file = fopen(s->deferred_options.log_filepath, "a");
void FUNC_0(GAState *VAR_0)

{

    if (!ga_is_frozen(VAR_0)) {

        return;

    }



    





    if (VAR_0->deferred_options.log_filepath) {

        VAR_0->log_file = fopen(VAR_0->deferred_options.log_filepath, "a");

        if (!VAR_0->log_file) {

            VAR_0->log_file = stderr;

        }

        VAR_0->deferred_options.log_filepath = NULL;

    }

    ga_enable_logging(VAR_0);

    g_warning("logging re-enabled due to filesystem unfreeze");

    if (VAR_0->deferred_options.pid_filepath) {

        if (!ga_open_pidfile(VAR_0->deferred_options.pid_filepath)) {

            g_warning("failed to create/open pid file");

        }

        VAR_0->deferred_options.pid_filepath = NULL;

    }



    

    ga_enable_non_blacklisted(VAR_0->blacklist);

    VAR_0->frozen = false;

    if (!ga_delete_file(VAR_0->state_filepath_isfrozen)) {

        g_warning("unable to delete %VAR_0, fsfreeze may not function properly",

                  VAR_0->state_filepath_isfrozen);

    }

}

void FUNC_0(GAState *VAR_0)
{ if (!ga_is_frozen(VAR_0)) { return; } if (VAR_0->deferred_options.log_filepath) { VAR_0->log_file = fopen(VAR_0->deferred_options.log_filepath, "a"); if (!VAR_0->log_file) { VAR_0->log_file = stderr; } VAR_0->deferred_options.log_filepath = NULL; } ga_enable_logging(VAR_0); g_warning("logging re-enabled due to filesystem unfreeze"); if (VAR_0->deferred_options.pid_filepath) { if (!ga_open_pidfile(VAR_0->deferred_options.pid_filepath)) { g_warning("failed to create/open pid file"); } VAR_0->deferred_options.pid_filepath = NULL; } ga_enable_non_blacklisted(VAR_0->blacklist); VAR_0->frozen = false; if (!ga_delete_file(VAR_0->state_filepath_isfrozen)) { g_warning("unable to delete %VAR_0, fsfreeze may not function properly",
VAR_0->state_filepath_isfrozen); } }