-const char jcc_rcs[] = "$Id: jcc.c,v 1.104 2006/09/23 13:26:38 roro Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.105 2006/11/06 14:26:02 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
*
* Revisions :
* $Log: jcc.c,v $
+ * Revision 1.105 2006/11/06 14:26:02 fabiankeil
+ * Don't exit after receiving the second SIGHUP on Solaris.
+ *
+ * Fixes BR 1052235, but the same problem may exist on other
+ * systems. Once 3.0.6 is out we should use sigset()
+ * where available and see if it breaks anything.
+ *
* Revision 1.104 2006/09/23 13:26:38 roro
* Replace TABs by spaces in source code.
*
#include <fcntl.h>
#include <errno.h>
-#ifdef FEATURE_PTHREAD
-#include <pthread.h>
-#endif /* def FEATURE_PTHREAD */
-
#ifdef _WIN32
# ifndef FEATURE_PTHREAD
# ifndef STRICT
#ifndef JCC_H_INCLUDED
#define JCC_H_INCLUDED
-#define JCC_H_VERSION "$Id: jcc.h,v 1.15 2006/09/02 10:24:30 fabiankeil Exp $"
+#define JCC_H_VERSION "$Id: jcc.h,v 1.16 2006/09/02 15:36:42 fabiankeil Exp $"
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.h,v $
*
* Revisions :
* $Log: jcc.h,v $
+ * Revision 1.16 2006/09/02 15:36:42 fabiankeil
+ * Follow the OpenBSD port's lead and protect the resolve
+ * functions on OpenBSD as well.
+ *
* Revision 1.15 2006/09/02 10:24:30 fabiankeil
* Include pthread.h for OpenBSD to make Privoxy build again.
*
extern int g_terminate;
#endif
-#if defined(OSX_DARWIN) || defined(__OpenBSD__)
+#ifdef FEATURE_PTHREAD
#include <pthread.h>
+extern pthread_mutex_t log_mutex;
+extern pthread_mutex_t log_init_mutex;
+#if defined(OSX_DARWIN) || defined(__OpenBSD__)
#ifdef OSX_DARWIN
extern pthread_mutex_t gmtime_mutex;
extern pthread_mutex_t localtime_mutex;
extern pthread_mutex_t gethostbyaddr_mutex;
extern pthread_mutex_t gethostbyname_mutex;
#endif /* defined(OSX_DARWIN) || defined(__OpenBSD__) */
-
-#ifdef FEATURE_PTHREAD
-extern pthread_mutex_t log_mutex;
-extern pthread_mutex_t log_init_mutex;
#endif /* FEATURE_PTHREAD */
/* Functions */