-const char jcc_rcs[] = "$Id: jcc.c,v 1.92.2.8 2003/03/31 13:12:32 oes Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.92.2.9 2003/04/03 15:08:42 oes Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/Attic/jcc.c,v $
*
* Revisions :
* $Log: jcc.c,v $
+ * Revision 1.92.2.9 2003/04/03 15:08:42 oes
+ * No longer rely on non-POSIX.1 extensions of getcwd().
+ * Fixes bug #711001
+ *
* Revision 1.92.2.8 2003/03/31 13:12:32 oes
* Replaced setenv() by posix-compliant putenv()
* Thanks to Neil McCalden (nmcc AT users.sf.net).
#endif /* def OSX_DARWIN */
#if defined(unix) || defined(__EMX__)
-const char *basedir;
+const char *basedir = NULL;
const char *pidfile = NULL;
int received_hup_signal = 0;
#endif /* defined unix */
if (write_socket(csp->cfd, hdr, hdrlen)
|| ((flushed = flush_socket(csp->cfd, csp)) < 0)
- || (write_socket(csp->cfd, buf, len)))
+ || (write_socket(csp->cfd, buf, (size_t) len)))
{
log_error(LOG_LEVEL_CONNECT, "Flush header and buffers to client failed: %E");
pthread_mutex_init(&gethostbyname_mutex,0);
#endif /* def OSX_DARWIN */
+ pthread_mutex_init(&inet_ntoa_mutex, 0);
+
/*
* Unix signal handling
*
serve(csp);
/*
- * If we've been toggled or we'be blocked the request, tell Mom
+ * If we've been toggled or we've blocked the request, tell Mom
*/
#ifdef FEATURE_TOGGLE
sweep();
#if defined(unix)
- free(basedir);
+ freez(basedir);
#endif
#if defined(_WIN32) && !defined(_WIN_CONSOLE)
/* Cleanup - remove taskbar icon etc. */
TermLogWindow();
#endif
+ freez(configfile);
+
exit(0);
#endif /* FEATURE_GRACEFUL_TERMINATION */