X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=errlog.c;h=0e672a767cb87d94579a5909259cb920bb0a58e4;hb=5214268f1ef9df06c1246a686fcab2a61d6a50ed;hp=924999eaed65bba62cd291c665360eda1b0c4a0e;hpb=a17d50002ab51bc75db0abcd801db6d4da12dc03;p=privoxy.git diff --git a/errlog.c b/errlog.c index 924999ea..0e672a76 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.59 2007/11/01 12:50:56 fabiankeil Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.60 2007/11/03 19:03:31 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -33,6 +33,12 @@ const char errlog_rcs[] = "$Id: errlog.c,v 1.59 2007/11/01 12:50:56 fabiankeil E * * Revisions : * $Log: errlog.c,v $ + * Revision 1.60 2007/11/03 19:03:31 fabiankeil + * - Prevent the Windows GUI from showing the version two times in a row. + * - Stop using the imperative in the "(Re-)Open logfile" message. + * - Ditch the "Switching to daemon mode" message as the detection + * whether or not we're already in daemon mode doesn't actually work. + * * Revision 1.59 2007/11/01 12:50:56 fabiankeil * Here's looking at you, deadlock. * @@ -522,14 +528,14 @@ void set_debug_level(int debug_level) *********************************************************************/ void disable_logging(void) { - lock_logfile(); if (logfp != NULL) { log_error(LOG_LEVEL_INFO, "No logfile configured. Logging disabled."); + lock_logfile(); fclose(logfp); logfp = NULL; + unlock_logfile(); } - unlock_logfile(); }