-const char jcc_rcs[] = "$Id: jcc.c,v 1.83 2002/03/16 23:54:06 jongfoster 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 $
*
* 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
+ *
* Revision 1.83 2002/03/16 23:54:06 jongfoster
* Adding graceful termination feature, to help look for memory leaks.
* If you enable this (which, by design, has to be done by hand
*********************************************************************/
void usage(const char *myname)
{
- printf("JunkBuster proxy version " VERSION " (" HOME_PAGE_URL ")\n"
+ printf("Privoxy version " VERSION " (" HOME_PAGE_URL ")\n"
"Usage: %s [--help] [--version] [--no-daemon] [--pidfile pidfile] [--user user[.group]] [configfile]\n"
"Aborting.\n", myname);
else if(strcmp(argv[argc_pos], "--version") == 0)
{
- printf("Junkbuster version " VERSION " (" HOME_PAGE_URL ")\n");
+ printf("Privoxy version " VERSION " (" HOME_PAGE_URL ")\n");
exit(0);
}
* on failure.
*
* Parameters :
- * 1 : config = Junkbuster configuration. Specifies port
+ * 1 : config = Privoxy configuration. Specifies port
* to bind to.
*
* Returns : Port that was opened.
{
case -3 :
log_error(LOG_LEVEL_FATAL, "can't bind to %s:%d: "
- "There may be another junkbuster or some other "
+ "There may be another Privoxy or some other "
"proxy running on port %d",
(NULL != config->haddr) ? config->haddr : "INADDR_ANY",
config->hport, config->hport);
}
#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));
NP_Entry, (ULONG)server_thread,
NP_Output, Output(),
NP_CloseOutput, FALSE,
- NP_Name, (ULONG)"junkbuster child",
+ NP_Name, (ULONG)"privoxy child",
NP_StackSize, 200*1024,
TAG_DONE)))
{
sweep();
sweep();
+#if defined(unix)
+ free(basedir);
+#endif
#if defined(_WIN32) && !defined(_WIN_CONSOLE)
/* Cleanup - remove taskbar icon etc. */
TermLogWindow();