#include <string.h>
#include <signal.h>
#include <pthread.h>
+#include <unistd.h>
#include <errno.h>
#include <assert.h>
#include <sys/stat.h>
switch(num) {
case SIGHUP:
- log4c_reread();
+ glite_common_log_reread();
break;
case SIGUSR1:
+ /* FIXME:
glite_common_log(LOG_CATEGORY_CONTROL, LOG_PRIORITY_INFO,
"Logging priority is now %s for %s, %s for %s and %s for %s\n",
log4c_priority_to_string(log4c_category_get_priority(log4c_category_get(LOG_CATEGORY_SECURITY))),
LOG_CATEGORY_ACCESS,
log4c_priority_to_string(log4c_category_get_priority(log4c_category_get(LOG_CATEGORY_CONTROL))),
LOG_CATEGORY_CONTROL);
+ */
break;
case SIGUSR2:
+ /* FIXME:
glite_common_log(LOG_CATEGORY_CONTROL, LOG_PRIORITY_INFO,
"Logging priority is now %s for %s, %s for %s, %s for %s and %s for %s\n",
log4c_priority_to_string(log4c_category_get_priority(log4c_category_get(LOG_CATEGORY_LB))),
LOG_CATEGORY_LB_IL,
log4c_priority_to_string(log4c_category_get_priority(log4c_category_get(LOG_CATEGORY_LB_SERVER))),
LOG_CATEGORY_LB_SERVER);
+ */
break;
case SIGPIPE:
}
/* check for reasonable queue lengths */
- if(queue_size_low == 0 && queue_size_high > 0 ||
- queue_size_low > queue_size_high) {
+ if((queue_size_low == 0 && queue_size_high > 0) ||
+ (queue_size_low > queue_size_high)) {
glite_common_log(LOG_CATEGORY_CONTROL, LOG_PRIORITY_FATAL, "max queue length -Q must be greater than low queue length -q, both or none must be specified!");
exit(EXIT_FAILURE);
}
/* TODO: probably also restart parent logd process? */
break;
case SIGUSR1:
+ /* FIXME:
glite_common_log(LOG_CATEGORY_CONTROL,LOG_PRIORITY_INFO,
"Logging priority is now %s for %s, %s for %s and %s for %s\n",
log4c_priority_to_string(log4c_category_get_priority(log4c_category_get(LOG_CATEGORY_SECURITY))),
LOG_CATEGORY_ACCESS,
log4c_priority_to_string(log4c_category_get_priority(log4c_category_get(LOG_CATEGORY_CONTROL))),
LOG_CATEGORY_CONTROL);
+ */
break;
case SIGUSR2:
+ /* FIXME:
glite_common_log(LOG_CATEGORY_CONTROL,LOG_PRIORITY_INFO,
"Logging priority is now %s for %s, %s for %s, %s for %s and %s for %s\n",
log4c_priority_to_string(log4c_category_get_priority(log4c_category_get(LOG_CATEGORY_LB))),
LOG_CATEGORY_LB_IL,
log4c_priority_to_string(log4c_category_get_priority(log4c_category_get(LOG_CATEGORY_LB_SERVER))),
LOG_CATEGORY_LB_SERVER);
+ */
break;
case SIGPIPE:
glite_common_log(LOG_CATEGORY_CONTROL,LOG_PRIORITY_INFO,"Broken pipe, lost communication channel.\n");
}
-doit_end:
edg_wll_gss_close(&con, NULL);
if (con.sock == -1)
glite_common_log(LOG_CATEGORY_ACCESS,LOG_PRIORITY_WARN, "Error closing descriptor '%d'.",con.sock);
int listener_fd;
int client_fd;
struct sockaddr_storage client_addr;
- int client_addr_len;
+ socklen_t client_addr_len;
- time_t cert_mtime = 0, key_mtime = 0;
+ time_t cert_mtime = 0;
edg_wll_GssStatus gss_stat;
edg_wll_GssCred cred = NULL;
#endif
} /* while */
-end:
if (listener_fd) close(listener_fd);
edg_wll_gss_release_cred(&cred, NULL);
exit(ret);