From: David Schmidt Date: Mon, 25 Mar 2002 17:04:55 +0000 (+0000) Subject: Workaround for closing the jarfile before load_config() comes around again X-Git-Tag: v_2_9_5~37 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=82d49cad27a8ebfc04e7cc8211cbd81c533fe7ba Workaround for closing the jarfile before load_config() comes around again --- diff --git a/jcc.c b/jcc.c index 7eb369e5..84a7eb47 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.84 2002/03/24 13:25:43 swa Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.85 2002/03/24 15:23:33 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -33,6 +33,9 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.84 2002/03/24 13:25:43 swa Exp $"; * * Revisions : * $Log: jcc.c,v $ + * Revision 1.85 2002/03/24 15:23:33 jongfoster + * Name changes + * * Revision 1.84 2002/03/24 13:25:43 swa * name change related issues * @@ -2019,6 +2022,23 @@ static void listen_loop(void) } #endif +#ifdef __OS2__ +#ifdef FEATURE_COOKIE_JAR + /* + * Need a workaround here: we have to fclose() the jarfile, or we die because it's + * already open. I think unload_configfile() is not being run, which should do + * this work. Until that can get resolved, we'll use this workaround. + */ + if (csp) + if(csp->config) + if (csp->config->jar) + { + fclose(csp->config->jar); + csp->config->jar = NULL; + } +#endif /* FEATURE_COOKIE_JAR */ +#endif /* __OS2__ */ + if ( NULL == (csp = (struct client_state *) zalloc(sizeof(*csp))) ) { log_error(LOG_LEVEL_FATAL, "malloc(%d) for csp failed: %E", sizeof(*csp));