From: Fabian Keil Date: Thu, 1 Nov 2007 12:50:56 +0000 (+0000) Subject: Here's looking at you, deadlock. X-Git-Tag: v_3_0_7~105 X-Git-Url: http://www.privoxy.org/gitweb/%40user-manual%40%40helplink%40ACTIONS-FILE?a=commitdiff_plain;h=3a10f21a1f641f593e9dcd8c9b7c21effcf67114;p=privoxy.git Here's looking at you, deadlock. --- diff --git a/errlog.c b/errlog.c index 96de4e18..58d1a84d 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.57 2007/10/27 13:02:26 fabiankeil Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.58 2007/10/28 19:04:21 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -33,6 +33,10 @@ const char errlog_rcs[] = "$Id: errlog.c,v 1.57 2007/10/27 13:02:26 fabiankeil E * * Revisions : * $Log: errlog.c,v $ + * Revision 1.58 2007/10/28 19:04:21 fabiankeil + * Don't mention daemon mode in "Logging disabled" message. Some + * platforms call it differently and it's not really relevant anyway. + * * Revision 1.57 2007/10/27 13:02:26 fabiankeil * Relocate daemon-mode-related log messages to make sure * they aren't shown again in case of configuration reloads. @@ -549,7 +553,6 @@ void init_error_log(const char *prog_name, const char *logfname) assert(NULL != logfname); lock_loginit(); - lock_logfile(); if (logfp == stderr) { @@ -571,6 +574,7 @@ void init_error_log(const char *prog_name, const char *logfname) /* set logging to be completely unbuffered */ setbuf(fp, NULL); + lock_logfile(); if (logfp != NULL) { fclose(logfp);